From: Magnus Karlsson <magnus.karls...@intel.com>

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.karls...@intel.com>
---
 include/linux/netdevice.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 85d91cc41cdf..7ddf9c7ad6d7 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1391,6 +1391,8 @@ struct net_device_ops {
                                                struct xdp_frame **xdp,
                                                u32 flags);
        void                    (*ndo_xdp_flush)(struct net_device *dev);
+       int                     (*ndo_xsk_async_xmit)(struct net_device *dev,
+                                                     u32 queue_id);
 };
 
 /**
-- 
2.14.1

Reply via email to