summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2018-06-04 15:05:56 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-06-05 16:48:08 +0300
commite3760c7e50ac6cdf1188fec44938dd7e6e6eef61 (patch)
tree814168034a8ca2cb8ebbb62b128942e085d981d4
parent173d3adb6f437037f216270955886ca9878187a5 (diff)
downloadlinux-e3760c7e50ac6cdf1188fec44938dd7e6e6eef61.tar.xz
net: added netdevice operation for Tx
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>
-rw-r--r--include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index cc4ea7ab6d24..03ffeadf8a41 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -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);
};
/**