net: added netdevice operation for Tx
authorMagnus Karlsson <magnus.karlsson@intel.com>
Mon, 4 Jun 2018 12:05:56 +0000 (14:05 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Jun 2018 13:48:08 +0000 (15:48 +0200)
Added ndo_xsk_async_xmit. This ndo "kicks" the netdev to start to pull
userland AF_XDP Tx frames from a NAPI context.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/netdevice.h

index cc4ea7ab6d243302320ad2032939509ccf74fd9e..03ffeadf8a41632908573109fc67685f5d174606 100644 (file)
@@ -1387,6 +1387,8 @@ struct net_device_ops {
        int                     (*ndo_xdp_xmit)(struct net_device *dev, int n,
                                                struct xdp_frame **xdp,
                                                u32 flags);
+       int                     (*ndo_xsk_async_xmit)(struct net_device *dev,
+                                                     u32 queue_id);
 };
 
 /**