]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7204fe4f14a43c9fc17c0ae7e86fc0b6fbc64c48
tree366c6875e28cdbebec61d93065ed9ba884b53dea
parent4fd49b9f0f1df9197347d1d8eb4d5df55c1fb1e0
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: 227a1b191ecc ("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