net/mlx5e: Remove redundant hashtable lookup in configure flower
authorRoi Dayan <roid@mellanox.com>
Wed, 30 Nov 2016 15:59:40 +0000 (17:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 15:47:02 +0000 (10:47 -0500)
commit53636068d8d6a08ca99949e2094b2b04ececa2d8
tree366c6875e28cdbebec61d93065ed9ba884b53dea
parentec8b9981ad3f3eeb5dcc4f237266e897c363f896
net/mlx5e: Remove redundant hashtable lookup in configure flower

We will never find a flow with the same cookie as cls_flower always
allocates a new flow and the cookie is the allocated memory address.

Fixes: e3a2b7ed018e ("net/mlx5e: Support offload cls_flower with drop action")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c