Home
last modified time | relevance | path

Searched refs:xdp_md (Results 1 – 2 of 2) sorted by relevance

/net/bpf/
Dtest_run.c696 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff() argument
702 if (!xdp_md) in xdp_convert_md_to_buff()
705 if (xdp_md->egress_ifindex != 0) in xdp_convert_md_to_buff()
708 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff()
709 rx_queue_index = xdp_md->rx_queue_index; in xdp_convert_md_to_buff()
734 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff()
742 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md() argument
744 if (!xdp_md) in xdp_convert_buff_to_md()
747 xdp_md->data = xdp->data - xdp->data_meta; in xdp_convert_buff_to_md()
748 xdp_md->data_end = xdp->data_end - xdp->data_meta; in xdp_convert_buff_to_md()
[all …]
/net/core/
Dfilter.c8317 if (off < 0 || off >= sizeof(struct xdp_md)) in __is_valid_xdp_access()
8334 case offsetof(struct xdp_md, egress_ifindex): in xdp_is_valid_access()
8342 case offsetof(struct xdp_md, rx_queue_index): in xdp_is_valid_access()
8350 case offsetof(struct xdp_md, data): in xdp_is_valid_access()
8353 case offsetof(struct xdp_md, data_meta): in xdp_is_valid_access()
8356 case offsetof(struct xdp_md, data_end): in xdp_is_valid_access()
9290 case offsetof(struct xdp_md, data): in xdp_convert_ctx_access()
9295 case offsetof(struct xdp_md, data_meta): in xdp_convert_ctx_access()
9300 case offsetof(struct xdp_md, data_end): in xdp_convert_ctx_access()
9305 case offsetof(struct xdp_md, ingress_ifindex): in xdp_convert_ctx_access()
[all …]