diff mbox series

[RFC,net-next,06/22] net: hv_netvsc: initialize mb bit of xdp_buff to 0

Message ID b974b617c54122f90a9e8a6f63b93960543477b7.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>
---
 drivers/net/hyperv/netvsc_bpf.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/net/hyperv/netvsc_bpf.c b/drivers/net/hyperv/netvsc_bpf.c
index 8e4141552423..e26c60413128 100644
--- a/drivers/net/hyperv/netvsc_bpf.c
+++ b/drivers/net/hyperv/netvsc_bpf.c
@@ -50,6 +50,7 @@  u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan,
 	xdp->data_end = xdp->data + len;
 	xdp->rxq = &nvchan->xdp_rxq;
 	xdp->frame_sz = PAGE_SIZE;
+	xdp->mb = 0;
 
 	memcpy(xdp->data, data, len);