diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2018-06-04 15:05:56 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-06-05 16:48:08 +0300 |
commit | e3760c7e50ac6cdf1188fec44938dd7e6e6eef61 (patch) | |
tree | 814168034a8ca2cb8ebbb62b128942e085d981d4 | |
parent | 173d3adb6f437037f216270955886ca9878187a5 (diff) | |
download | linux-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.h | 2 |
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); }; /** |