diff mbox series

[RFC,net-next,02/22] xdp: initialize xdp_buff mb bit to 0 in netif_receive_generic_xdp

Message ID 0c3c29b8d87259cd54bb7b1ec5892f71d12d62bb.1595503780.git.lorenzo@kernel.org
State RFC
Delegated to: BPF Maintainers
Headers show
Series Introduce mb bit in xdp_buff/xdp_frame | expand

Commit Message

Lorenzo Bianconi July 23, 2020, 11:42 a.m. UTC
Initialize multi-buffer bit (mb) to 0 in xdp_buff data structure.
This is a preliminary patch to enable xdp multi-buffer support.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
 net/core/dev.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/core/dev.c b/net/core/dev.c
index 316349f6cea5..eb3e54df198c 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4641,6 +4641,7 @@  static u32 netif_receive_generic_xdp(struct sk_buff *skb,
 	/* SKB "head" area always have tailroom for skb_shared_info */
 	xdp->frame_sz  = (void *)skb_end_pointer(skb) - xdp->data_hard_start;
 	xdp->frame_sz += SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
+	xdp->mb = 0;
 
 	orig_data_end = xdp->data_end;
 	orig_data = xdp->data;