| /tools/testing/selftests/bpf/prog_tests/ |
| A D | flow_dissector.c | 111 .nhoff = ETH_HLEN, 132 .nhoff = ETH_HLEN, 203 .nhoff = ETH_HLEN, 229 .nhoff = ETH_HLEN, 252 .nhoff = ETH_HLEN, 278 .nhoff = ETH_HLEN, 301 .nhoff = ETH_HLEN, 325 .nhoff = ETH_HLEN, 348 .nhoff = ETH_HLEN, 376 .nhoff = ETH_HLEN, [all …]
|
| A D | xdp_devmap_attach.c | 26 char data[ETH_HLEN] = {}; in test_xdp_with_devmap_helpers() 161 char data[ETH_HLEN] = {}; in test_xdp_with_devmap_helpers_veth()
|
| A D | xdp_cpumap_attach.c | 55 char data[ETH_HLEN] = {}; in test_xdp_with_cpumap_helpers()
|
| A D | xdp_bonding.c | 236 iph.tot_len = htons(sizeof(buf) - ETH_HLEN); in send_udp_packets()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | test_tc_tunnel.c | 30 #define L2_PAD_SZ (sizeof(struct vxlanhdr) + ETH_HLEN) 120 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph6_inner, in __encap_ipv4() 137 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv4() 148 if (bpf_skb_load_bytes(skb, ETH_HLEN + tcp_off, in __encap_ipv4() 166 l2_len = ETH_HLEN; in __encap_ipv4() 218 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4() 274 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, in __encap_ipv6() 297 l2_len = ETH_HLEN; in __encap_ipv6() 639 olen += ETH_HLEN; in decap_internal() 652 olen += ETH_HLEN; in decap_internal() [all …]
|
| A D | decap_sanity.c | 42 if (bpf_skb_load_bytes(skb, ETH_HLEN, &ip6h, sizeof(ip6h))) in decap_sanity() 48 if (bpf_skb_load_bytes(skb, ETH_HLEN + sizeof(ip6h), &udph, sizeof(udph))) in decap_sanity() 56 err = bpf_skb_adjust_room(skb, -(s32)(ETH_HLEN + sizeof(ip6h) + sizeof(udph)), in decap_sanity()
|
| A D | test_check_mtu.c | 71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu() 96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta() 123 __u32 mtu_len = data_len - ETH_HLEN; in xdp_input_len() 186 delta = GLOBAL_USER_MTU - (skb_len - ETH_HLEN) + 1; in tc_exceed_mtu() 213 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in tc_exceed_mtu_da() 236 delta = -((skb_len - ETH_HLEN) + 1); in tc_minus_delta()
|
| A D | crypto_sanity.c | 29 if (bpf_skb_load_bytes(skb, ETH_HLEN, &ip6h, sizeof(ip6h))) in skb_dynptr_validate() 35 if (bpf_skb_load_bytes(skb, ETH_HLEN + sizeof(ip6h), &udph, sizeof(udph))) in skb_dynptr_validate() 41 offset = ETH_HLEN + sizeof(ip6h) + sizeof(udph); in skb_dynptr_validate()
|
| A D | test_tc_peer.c | 48 if (bpf_skb_change_head(skb, ETH_HLEN, 0) != 0) in tc_src_l3()
|
| A D | test_lwt_redirect.c | 17 if (bpf_skb_change_head(skb, ETH_HLEN, 0)) in prepend_dummy_mac()
|
| A D | bpf_tracing_net.h | 71 #define ETH_HLEN 14 macro
|
| A D | test_tunnel_kern.c | 469 if (bpf_skb_store_bytes(skb, ETH_HLEN + offsetof(struct iphdr, daddr), in veth_set_outer_dst() 474 if (bpf_l3_csum_replace(skb, ETH_HLEN + offsetof(struct iphdr, check), in veth_set_outer_dst()
|
| /tools/testing/selftests/net/ |
| A D | psock_snd.c | 50 #define TEST_SZ (sizeof(struct virtio_net_hdr) + ETH_HLEN + ETH_MAX_MTU + 1) 80 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_vnet_header() 84 vh->csum_start = ETH_HLEN + sizeof(struct iphdr); in build_vnet_header() 106 uint16_t *tag = header + ETH_HLEN; in build_eth_header() 110 return ETH_HLEN + 4; in build_eth_header() 114 return ETH_HLEN; in build_eth_header() 193 buf += ETH_HLEN; in do_send() 194 len -= ETH_HLEN; in do_send()
|
| A D | gro.c | 121 ipproto_off = ETH_HLEN + next_off; in setup_sock_filter() 318 fill_networklayer(buf + ETH_HLEN, payload_len); in create_packet() 361 static char buf[ETH_HLEN + IP_MAXPACKET]; in send_data_pkts() 598 iph = (struct iphdr *)(optpkt + ETH_HLEN); in add_ipv4_ts_option() 640 iph1 = (struct iphdr *)(buf1 + ETH_HLEN); in send_flush_id_case() 641 iph2 = (struct iphdr *)(buf2 + ETH_HLEN); in send_flush_id_case() 642 iph3 = (struct iphdr *)(buf3 + ETH_HLEN); in send_flush_id_case() 780 fill_networklayer(buf + ETH_HLEN, PAYLOAD_LEN); in send_fragment4() 840 buf[ETH_HLEN + 1] ^= 0x2; // ECN set to 10 in send_changed_ECN() 844 buf[ETH_HLEN + 1] ^= 0x20; // ECN set to 10 in send_changed_ECN() [all …]
|
| A D | tap.c | 31 #define TEST_PACKET_SZ (sizeof(struct virtio_net_hdr) + ETH_HLEN + ETH_MAX_MTU) 229 return ETH_HLEN; in build_eth() 311 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_test_packet_valid_udp_gso() 313 vh->csum_start = ETH_HLEN + sizeof(struct iphdr); in build_test_packet_valid_udp_gso() 348 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_test_packet_crash_tap_invalid_eth_proto()
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | ethtool_rmon.sh | 14 ETH_HLEN=$((6+6+2)) 23 local required=$((len - ETH_HLEN - ETH_FCS_LEN))
|
| /tools/testing/selftests/bpf/ |
| A D | xdp_hw_metadata.c | 394 len = ETH_HLEN; in ping_pong()
|
| /tools/testing/selftests/bpf/verifier/ |
| A D | calls.c | 642 .retval = TEST_DATA_LEN + TEST_DATA_LEN - ETH_HLEN - ETH_HLEN,
|