/linux-master/samples/bpf/ |
H A D | parse_varlen.c | 51 static int parse_ipv4(void *data, uint64_t nh_off, void *data_end) argument 56 iph = data + nh_off; 65 iph = data + nh_off + ihl_len; 72 return tcp(data, nh_off + ihl_len, data_end); 74 return udp(data, nh_off + ihl_len, data_end); 78 static int parse_ipv6(void *data, uint64_t nh_off, void *data_end) argument 85 ip6h = data + nh_off; 92 iph = data + nh_off + ihl_len; 98 ip6h = data + nh_off + ihl_len; 106 return tcp(data, nh_off 118 uint64_t h_proto, nh_off; local [all...] |
H A D | xdp_router_ipv4.bpf.c | 79 u64 nh_off = sizeof(*eth); local 88 if (data + nh_off > data_end) 96 vhdr = data + nh_off; 97 nh_off += sizeof(struct vlan_hdr); 98 if (data + nh_off > data_end) 110 struct iphdr *iph = data + nh_off;
|
H A D | xdp_fwd_kern.c | 52 u64 nh_off; local 55 nh_off = sizeof(*eth); 56 if (data + nh_off > data_end) 63 iph = data + nh_off; 83 ip6h = data + nh_off;
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_verif_scale2.c | 14 int nh_off, i = 0; local 16 nh_off = 14; 22 if (ptr + nh_off > data_end) \ 24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \
|
H A D | test_verif_scale1.c | 14 int nh_off, i = 0; local 16 nh_off = 14; 22 if (ptr + nh_off > data_end) \ 24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \
|
H A D | test_verif_scale3.c | 14 int nh_off, i = 0; local 16 nh_off = 32; 22 if (ptr + nh_off > data_end) \ 24 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \
|
H A D | xdp_redirect_multi_kern.c | 45 __u64 nh_off; local 47 nh_off = sizeof(*eth); 48 if (data + nh_off > data_end) 80 __u64 nh_off; local 83 nh_off = sizeof(*eth); 84 if (data + nh_off > data_end)
|
H A D | core_kern.c | 80 int nh_off, i = 0; local 82 nh_off = 14; 87 if (ptr + nh_off > data_end) \ 89 ctx->tc_index = jhash(ptr, nh_off, ctx->cb[0] + i++); \
|
H A D | test_sk_lookup_kern.c | 21 static struct bpf_sock_tuple *get_tuple(void *data, __u64 nh_off, argument 30 struct iphdr *iph = (struct iphdr *)(data + nh_off); 39 struct ipv6hdr *ip6h = (struct ipv6hdr *)(data + nh_off); 49 if (data + nh_off + ihl_len > data_end || proto != IPPROTO_TCP)
|
H A D | test_xdp_noinline.c | 765 __u32 nh_off; local 767 nh_off = sizeof(struct eth_hdr); 768 if (data + nh_off > data_end) 772 return process_packet(data, nh_off, data_end, 0, ctx); 784 __u32 nh_off; local 786 nh_off = sizeof(struct eth_hdr); 787 if (data + nh_off > data_end) 791 return process_packet(data, nh_off, data_end, 1, ctx);
|
H A D | test_l4lb.c | 458 __u32 nh_off; local 460 nh_off = sizeof(struct eth_hdr); 461 if (data + nh_off > data_end) 465 return process_packet(data, nh_off, data_end, false, ctx); 467 return process_packet(data, nh_off, data_end, true, ctx);
|
H A D | test_l4lb_noinline.c | 457 __u32 nh_off; local 459 nh_off = sizeof(struct eth_hdr); 460 if (data + nh_off > data_end) 464 return process_packet(data, nh_off, data_end, false, ctx); 466 return process_packet(data, nh_off, data_end, true, ctx);
|
H A D | test_l4lb_noinline_dynptr.c | 464 __u32 nh_off; local 467 nh_off = sizeof(struct eth_hdr); 475 err = process_packet(&ptr, eth, nh_off, false, ctx); 477 err = process_packet(&ptr, eth, nh_off, true, ctx);
|
/linux-master/include/linux/ |
H A D | virtio_net.h | 156 unsigned int nh_off = p_off; local 162 nh_off -= thlen; 181 if (skb->len - nh_off > gso_size) {
|
/linux-master/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 1348 const int nh_off = skb_network_offset(skb); local 1356 XCT_FUN_CRM_SIG | XCT_FUN_LLEN(skb->len - nh_off) | 1383 CS_DESC(csring, fill) = XCT_PTR_LEN(map_size[0]-nh_off) | XCT_PTR_ADDR(map[0]+nh_off); 1438 const int nh_off = skb_network_offset(skb); local 1470 dflags |= XCT_MACTX_IPO(nh_off); 1475 dflags |= XCT_MACTX_IPO(nh_off);
|