Lines Matching defs:xdp_md
1080 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp)
1086 if (!xdp_md)
1089 if (xdp_md->egress_ifindex != 0)
1092 ingress_ifindex = xdp_md->ingress_ifindex;
1093 rx_queue_index = xdp_md->rx_queue_index;
1118 xdp->data = xdp->data_meta + xdp_md->data;
1126 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md)
1128 if (!xdp_md)
1131 xdp_md->data = xdp->data - xdp->data_meta;
1132 xdp_md->data_end = xdp->data_end - xdp->data_meta;
1134 if (xdp_md->ingress_ifindex)
1152 struct xdp_md *ctx;
1176 ctx = bpf_ctx_init(kattr, sizeof(struct xdp_md));
1258 /* We convert the xdp_buff back to an xdp_md before checking the return
1271 sizeof(struct xdp_md));