]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: NULL xdp_tx rings on resource cleanup
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 17 Jul 2017 16:26:24 +0000 (09:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:48:05 +0000 (09:48 -0700)
commit5af198afd156f1501fe3b23bef9f557fa2587348
tree4ee30a6dc1565e3d4bad959b73468df7f29f5deb
parenta6af478f247acb5fe5d00a6431123f52390d15ba
ixgbe: NULL xdp_tx rings on resource cleanup

tx_rings and rx_rings are cleaned up on close paths in ixgbe driver
however, xdp_rings are not. Set the xdp_rings to NULL here so that
we can use the pointer to indicate if the XDP rings are initialized.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c