]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
virtio_net: remove ndo_xdp_flush call virtnet_xdp_flush
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 5 Jun 2018 11:55:40 +0000 (13:55 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Jun 2018 12:03:16 +0000 (14:03 +0200)
Remove the ndo_xdp_flush call implementation virtnet_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>
drivers/net/virtio_net.c

index 62ba8aadd8e68f9097eea746c1e1a0de9f888149..8c5b59e79439b7f972fee01554282ce569456176 100644 (file)
@@ -407,18 +407,6 @@ static struct sk_buff *page_to_skb(struct virtnet_info *vi,
        return skb;
 }
 
-static void virtnet_xdp_flush(struct net_device *dev)
-{
-       struct virtnet_info *vi = netdev_priv(dev);
-       struct send_queue *sq;
-       unsigned int qp;
-
-       qp = vi->curr_queue_pairs - vi->xdp_queue_pairs + smp_processor_id();
-       sq = &vi->sq[qp];
-
-       virtqueue_kick(sq->vq);
-}
-
 static int __virtnet_xdp_xmit_one(struct virtnet_info *vi,
                                   struct send_queue *sq,
                                   struct xdp_frame *xdpf)
@@ -2359,7 +2347,6 @@ static const struct net_device_ops virtnet_netdev = {
 #endif
        .ndo_bpf                = virtnet_xdp,
        .ndo_xdp_xmit           = virtnet_xdp_xmit,
-       .ndo_xdp_flush          = virtnet_xdp_flush,
        .ndo_features_check     = passthru_features_check,
 };