summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2020-04-22 15:05:09 +0300
committerDavid S. Miller <davem@davemloft.net>2020-04-23 06:11:29 +0300
commit788f87ac608c518b74f338acb95f197cf6e3d0c4 (patch)
treeee4b1e8e682dd9f3812603f570081467980329c3 /include
parent493f3cc7ee020a4c5da02f6502743d9ae7be50d6 (diff)
downloadlinux-788f87ac608c518b74f338acb95f197cf6e3d0c4.tar.xz
xdp: export the DEV_MAP_BULK_SIZE macro
Export the DEV_MAP_BULK_SIZE macro to the header file so that drivers can directly use it as the maximum number of xdp_frames received in the .ndo_xdp_xmit() callback. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/xdp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/xdp.h b/include/net/xdp.h
index 40c6d3398458..3cc6d5d84aa4 100644
--- a/include/net/xdp.h
+++ b/include/net/xdp.h
@@ -181,4 +181,6 @@ bool xdp_attachment_flags_ok(struct xdp_attachment_info *info,
void xdp_attachment_setup(struct xdp_attachment_info *info,
struct netdev_bpf *bpf);
+#define DEV_MAP_BULK_SIZE 16
+
#endif /* __LINUX_NET_XDP_H__ */