]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Re-arrange XDP SQ/CQ creation
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 3 Nov 2016 23:48:43 +0000 (01:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2016 18:59:35 +0000 (14:59 -0400)
commitf028e0aff1591dad68d58d97e3cfa59b1becc586
treee48e956f8a90652dd2f1ab4e92744f0b89c3a83b
parent5e98fb3d9e6fa97647cf46d2374289a89a663a8c
net/mlx5e: Re-arrange XDP SQ/CQ creation

In mlx5e_open_channel CQs must be created before napi is enabled.
Here we move the XDP CQ creation to satisfy that fact.

mlx5e_close_channel is already working according to the right order.

Fixes: 5fa1fcacf9a2 ("net/mlx5e: XDP TX forwarding support")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reported-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c