Skip to content

Commit e3760c7

Browse files
magnus-karlssonborkmann
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent 173d3ad commit e3760c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/netdevice.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,8 @@ struct net_device_ops {
13871387
int (*ndo_xdp_xmit)(struct net_device *dev, int n,
13881388
struct xdp_frame **xdp,
13891389
u32 flags);
1390+
int (*ndo_xsk_async_xmit)(struct net_device *dev,
1391+
u32 queue_id);
13901392
};
13911393

13921394
/**

0 commit comments

Comments
 (0)