xsk: make xsk_buff_pool responsible for clearing xdp_buff::flags
[platform/kernel/linux-rpi.git] / include / net / xdp_sock_drv.h
index 1f6fc8c..7290eb7 100644 (file)
@@ -152,6 +152,7 @@ static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size)
        xdp->data = xdp->data_hard_start + XDP_PACKET_HEADROOM;
        xdp->data_meta = xdp->data;
        xdp->data_end = xdp->data + size;
+       xdp->flags = 0;
 }
 
 static inline dma_addr_t xsk_buff_raw_get_dma(struct xsk_buff_pool *pool,