OSDN Git Service

i40e: split XDP_TX tail and XDP_REDIRECT map flushing
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 26 Jun 2018 15:39:53 +0000 (17:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 05:27:52 +0000 (14:27 +0900)
commit2e6893123830d04edc366e0ce59d46e622e140c1
tree666a172a1d4d842989b2f85f7fc5eee019d1a2ec
parentad088ec480768850db019a5cc543685e868a513d
i40e: split XDP_TX tail and XDP_REDIRECT map flushing

The driver was combining the XDP_TX tail flush and XDP_REDIRECT
map flushing (xdp_do_flush_map).  This is suboptimal, these two
flush operations should be kept separate.

It looks like the mistake was copy-pasted from ixgbe.

Fixes: d9314c474d4f ("i40e: add support for XDP_REDIRECT")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_txrx.c