XDP_TX can not support metadata for now, because if metasize > 0, __virtnet_xdp_xmit_one() returns EOPNOTSUPP.ÂÂÂÂÂÂÂÂÂ case XDP_TX:Any reason for doing this?
ÂÂÂÂÂÂÂÂÂÂÂÂÂ stats->xdp_tx++;
+ÂÂÂÂÂÂÂÂÂÂÂ xdp.data_meta = xdp.data;
static int __virtnet_xdp_xmit_one(struct virtnet_info *vi,
struct send_queue *sq,
struct xdp_frame *xdpf)
{
struct virtio_net_hdr_mrg_rxbuf *hdr;
int err;
/* virtqueue want to use data area in-front of packet */
if (unlikely(xdpf->metasize > 0))
return -EOPNOTSUPP;