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)
commitd7a0ecab380c62ccd9fbe2e08dd720f7a367d6ee
treee48e956f8a90652dd2f1ab4e92744f0b89c3a83b
parent87dc02551c509703123a60dd7f043d75e92a6aed
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: b5503b994ed5 ("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