ixgbe: remove ndo_xdp_flush call ixgbe_xdp_flush
Remove the ndo_xdp_flush call implementation ixgbe_xdp_flush as no callers of ndo_xdp_flush are left. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
parent
763ea096f3
commit
af3746a779
|
@ -10069,26 +10069,6 @@ static int ixgbe_xdp_xmit(struct net_device *dev, int n,
|
||||||
return n - drops;
|
return n - drops;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ixgbe_xdp_flush(struct net_device *dev)
|
|
||||||
{
|
|
||||||
struct ixgbe_adapter *adapter = netdev_priv(dev);
|
|
||||||
struct ixgbe_ring *ring;
|
|
||||||
|
|
||||||
/* Its possible the device went down between xdp xmit and flush so
|
|
||||||
* we need to ensure device is still up.
|
|
||||||
*/
|
|
||||||
if (unlikely(test_bit(__IXGBE_DOWN, &adapter->state)))
|
|
||||||
return;
|
|
||||||
|
|
||||||
ring = adapter->xdp_prog ? adapter->xdp_ring[smp_processor_id()] : NULL;
|
|
||||||
if (unlikely(!ring))
|
|
||||||
return;
|
|
||||||
|
|
||||||
ixgbe_xdp_ring_update_tail(ring);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct net_device_ops ixgbe_netdev_ops = {
|
static const struct net_device_ops ixgbe_netdev_ops = {
|
||||||
.ndo_open = ixgbe_open,
|
.ndo_open = ixgbe_open,
|
||||||
.ndo_stop = ixgbe_close,
|
.ndo_stop = ixgbe_close,
|
||||||
|
@ -10136,7 +10116,6 @@ static const struct net_device_ops ixgbe_netdev_ops = {
|
||||||
.ndo_features_check = ixgbe_features_check,
|
.ndo_features_check = ixgbe_features_check,
|
||||||
.ndo_bpf = ixgbe_xdp,
|
.ndo_bpf = ixgbe_xdp,
|
||||||
.ndo_xdp_xmit = ixgbe_xdp_xmit,
|
.ndo_xdp_xmit = ixgbe_xdp_xmit,
|
||||||
.ndo_xdp_flush = ixgbe_xdp_flush,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue