aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/xdp.c
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2020-06-16 18:35:18 +0800
committerAlexei Starovoitov <ast@kernel.org>2020-06-17 09:58:15 -0700
commit3ff2351651a2ecb73ec9d29119793bde190b2850 (patch)
treeaf918c9e450aa0684d5ba8bb719d32fdf591b513 /net/core/xdp.c
parenttools, bpftool: Add ringbuf map type to map command docs (diff)
downloadwireguard-linux-3ff2351651a2ecb73ec9d29119793bde190b2850.tar.xz
wireguard-linux-3ff2351651a2ecb73ec9d29119793bde190b2850.zip
xdp: Handle frame_sz in xdp_convert_zc_to_xdp_frame()
In commit 34cc0b338a61 we only handled the frame_sz in convert_to_xdp_frame(). This patch will also handle frame_sz in xdp_convert_zc_to_xdp_frame(). Fixes: 34cc0b338a61 ("xdp: Xdp_frame add member frame_sz and handle in convert_to_xdp_frame") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20200616103518.2963410-1-liuhangbin@gmail.com
Diffstat (limited to '')
-rw-r--r--net/core/xdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/xdp.c b/net/core/xdp.c
index 90f44f382115..3c45f99e26d5 100644
--- a/net/core/xdp.c
+++ b/net/core/xdp.c
@@ -462,6 +462,7 @@ struct xdp_frame *xdp_convert_zc_to_xdp_frame(struct xdp_buff *xdp)
xdpf->len = totsize - metasize;
xdpf->headroom = 0;
xdpf->metasize = metasize;
+ xdpf->frame_sz = PAGE_SIZE;
xdpf->mem.type = MEM_TYPE_PAGE_ORDER0;
xsk_buff_free(xdp);