aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
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-22 20:11:29 -0700
commit788f87ac608c518b74f338acb95f197cf6e3d0c4 (patch)
treeee4b1e8e682dd9f3812603f570081467980329c3 /kernel
parentselftests: A few improvements to fib_nexthops.sh (diff)
downloadlinux-dev-788f87ac608c518b74f338acb95f197cf6e3d0c4.tar.xz
linux-dev-788f87ac608c518b74f338acb95f197cf6e3d0c4.zip
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 'kernel')
-rw-r--r--kernel/bpf/devmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c
index 58bdca5d978a..a51d9fb7a359 100644
--- a/kernel/bpf/devmap.c
+++ b/kernel/bpf/devmap.c
@@ -52,7 +52,6 @@
#define DEV_CREATE_FLAG_MASK \
(BPF_F_NUMA_NODE | BPF_F_RDONLY | BPF_F_WRONLY)
-#define DEV_MAP_BULK_SIZE 16
struct xdp_dev_bulk_queue {
struct xdp_frame *q[DEV_MAP_BULK_SIZE];
struct list_head flush_node;