From: Magnus Karlsson Date: Mon, 4 Jun 2018 12:05:56 +0000 (+0200) Subject: net: added netdevice operation for Tx X-Git-Tag: v4.18-rc1~114^2~9^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3760c7e50ac6cdf1188fec44938dd7e6e6eef61;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Daniel Borkmann --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index cc4ea7ab6d243..03ffeadf8a416 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); }; /**