Lines Matching refs:data
85 static inline void set_src_dst_mac(void *data, void *src, void *dst) in set_src_dst_mac() argument
89 unsigned short *p = data; in set_src_dst_mac()
96 static inline int parse_ipv4(void *data, u64 nh_off, void *data_end, in parse_ipv4() argument
99 struct iphdr *iph = data + nh_off; in parse_ipv4()
113 void *data = (void *)(long)ctx->data; in xdp_router_ipv4_prog() local
116 struct ethhdr *eth = data; in xdp_router_ipv4_prog()
124 if (data + nh_off > data_end) in xdp_router_ipv4_prog()
132 vhdr = data + nh_off; in xdp_router_ipv4_prog()
134 if (data + nh_off > data_end) in xdp_router_ipv4_prog()
144 ipproto = parse_ipv4(data, nh_off, data_end, &src_ip, &dest_ip); in xdp_router_ipv4_prog()
177 set_src_dst_mac(data, src_mac, dest_mac); in xdp_router_ipv4_prog()