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)
commit770f82253dbd7e6892a88018f2f6cd395f48d214
tree177c454b09676bb54648883037b2d66c40bbdf74
parentf32b20e89e82c9ff1825fc5c5d69753ff5558ccd
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: 47a38e155037 ("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