Lines Matching refs:xdp_md
1086 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff() argument
1092 if (!xdp_md) in xdp_convert_md_to_buff()
1095 if (xdp_md->egress_ifindex != 0) in xdp_convert_md_to_buff()
1098 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff()
1099 rx_queue_index = xdp_md->rx_queue_index; in xdp_convert_md_to_buff()
1124 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff()
1132 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md() argument
1134 if (!xdp_md) in xdp_convert_buff_to_md()
1137 xdp_md->data = xdp->data - xdp->data_meta; in xdp_convert_buff_to_md()
1138 xdp_md->data_end = xdp->data_end - xdp->data_meta; in xdp_convert_buff_to_md()
1140 if (xdp_md->ingress_ifindex) in xdp_convert_buff_to_md()
1158 struct xdp_md *ctx; in bpf_prog_test_run_xdp()
1182 ctx = bpf_ctx_init(kattr, sizeof(struct xdp_md)); in bpf_prog_test_run_xdp()
1277 sizeof(struct xdp_md)); in bpf_prog_test_run_xdp()