]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: xdp_prog becomes inactive after ethtool '-L' or '-G'
authorMartin KaFai Lau <kafai@fb.com>
Wed, 1 Feb 2017 06:35:33 +0000 (22:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 02:27:05 +0000 (21:27 -0500)
commit78cfb228d1667571f56664451d814c5a2025fa88
tree177c454b09676bb54648883037b2d66c40bbdf74
parent3ba9dbc04a5a9a8a8d37ce7aa1dbee887c7d3859
mlx4: xdp_prog becomes inactive after ethtool '-L' or '-G'

After calling mlx4_en_try_alloc_resources (e.g. by changing the
number of rx-queues with ethtool -L), the existing xdp_prog becomes
inactive.

The bug is that the xdp_prog ptr has not been carried over from
the old rx-queues to the new rx-queues

Fixes: f814f11142a4 ("net/mlx4_en: add support for fast rx drop bpf program")
Cc: Brenden Blanco <bblanco@plumgrid.com>
Cc: Saeed Mahameed <saeedm@mellanox.com>
Cc: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h