Lines Matching defs:xdp_md
1092 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp)
1098 if (!xdp_md)
1101 if (xdp_md->egress_ifindex != 0)
1104 ingress_ifindex = xdp_md->ingress_ifindex;
1105 rx_queue_index = xdp_md->rx_queue_index;
1130 xdp->data = xdp->data_meta + xdp_md->data;
1138 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md)
1140 if (!xdp_md)
1143 xdp_md->data = xdp->data - xdp->data_meta;
1144 xdp_md->data_end = xdp->data_end - xdp->data_meta;
1146 if (xdp_md->ingress_ifindex)
1164 struct xdp_md *ctx;
1188 ctx = bpf_ctx_init(kattr, sizeof(struct xdp_md));
1270 /* We convert the xdp_buff back to an xdp_md before checking the return
1283 sizeof(struct xdp_md));