Saeed Mahameed 87dc02551c net/mlx5e: Fix XDP error path of mlx5e_open_channel()
In case of mlx5e_open_rq fails the error handling will jump to
label err_close_xdp_sq and will try to close the xdp_sq unconditionally.
xdp_sq is valid only in case of XDP use cases, i.e priv->xdp_prog is
not null.

To fix this in this patch we test xdp_sq validity prior to closing it.

In addition we now close the xdp_sq.cq as well.

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>
2016-11-04 14:59:35 -04:00
..
2016-08-06 09:20:13 -04:00
2016-08-15 11:57:55 -07:00
2016-09-19 01:25:22 -04:00
2016-08-31 14:33:09 -07:00
2016-10-30 20:56:13 -04:00
2016-09-20 22:55:23 -04:00
2016-08-30 22:27:18 -07:00
2016-10-29 20:56:31 -04:00