]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: remove net_device operation ndo_xdp_flush
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 5 Jun 2018 11:55:50 +0000 (13:55 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Jun 2018 12:03:16 +0000 (14:03 +0200)
All drivers are cleaned up and no references to ndo_xdp_flush
are left in drivers, it is time to remove the net_device_ops
operation ndo_xdp_flush.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/netdevice.h

index 7f17785a59d7622b567b6b473681bb0892fb5588..42c6ea35a6f24195f2fae0f68929701958b5f4da 100644 (file)
@@ -1192,9 +1192,6 @@ struct dev_ifalias {
  *     that got dropped are freed/returned via xdp_return_frame().
  *     Returns negative number, means general error invoking ndo, meaning
  *     no frames were xmit'ed and core-caller will free all frames.
- * void (*ndo_xdp_flush)(struct net_device *dev);
- *     This function is used to inform the driver to flush a particular
- *     xdp tx queue. Must be called on same CPU as xdp_xmit.
  */
 struct net_device_ops {
        int                     (*ndo_init)(struct net_device *dev);
@@ -1382,7 +1379,6 @@ struct net_device_ops {
        int                     (*ndo_xdp_xmit)(struct net_device *dev, int n,
                                                struct xdp_frame **xdp,
                                                u32 flags);
-       void                    (*ndo_xdp_flush)(struct net_device *dev);
 };
 
 /**