/linux-4.4.14/samples/bpf/ |
H A D | tcbpf1_kern.c | 19 #define IP_CSUM_OFF (ETH_HLEN + offsetof(struct iphdr, check)) 20 #define TOS_OFF (ETH_HLEN + offsetof(struct iphdr, tos)) 30 #define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check)) 31 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr)) 44 #define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest)) set_tcp_dest_port() 56 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); bpf_prog1()
|
H A D | sockex1_kern.c | 17 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); bpf_prog1()
|
H A D | sock_example.c | 5 * r0 = skb->data[ETH_HLEN + offsetof(struct iphdr, protocol)]; 45 BPF_LD_ABS(BPF_B, ETH_HLEN + offsetof(struct iphdr, protocol) /* R0 = ip->proto */), test_sock()
|
H A D | sockex2_kern.c | 101 __u64 nhoff = ETH_HLEN; flow_dissector()
|
H A D | sockex3_kern.c | 282 __u32 nhoff = ETH_HLEN; main_prog()
|
/linux-4.4.14/net/core/ |
H A D | timestamping.c | 66 if (skb_headroom(skb) < ETH_HLEN) skb_defer_rx_timestamp() 69 __skb_push(skb, ETH_HLEN); skb_defer_rx_timestamp() 73 __skb_pull(skb, ETH_HLEN); skb_defer_rx_timestamp()
|
H A D | netpoll.c | 438 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); netpoll_send_udp() 467 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); netpoll_send_udp()
|
H A D | pktgen.c | 2660 skb_pull(skb, ETH_HLEN); process_ipsec() 2667 eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); process_ipsec() 2673 iph->tot_len = htons(skb->len - ETH_HLEN); process_ipsec()
|
H A D | skbuff.c | 4292 memmove(skb->data - ETH_HLEN, skb->data - skb->mac_len - VLAN_HLEN, skb_reorder_vlan_header() 4364 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); __skb_vlan_pop() 4373 if (skb_network_offset(skb) < ETH_HLEN) __skb_vlan_pop() 4374 skb_set_network_header(skb, ETH_HLEN); __skb_vlan_pop()
|
/linux-4.4.14/net/dsa/ |
H A D | tag_edsa.c | 168 memmove(skb->data - ETH_HLEN, edsa_rcv() 169 skb->data - ETH_HLEN - DSA_HLEN, edsa_rcv() 176 memmove(skb->data - ETH_HLEN, edsa_rcv() 177 skb->data - ETH_HLEN - EDSA_HLEN, edsa_rcv() 182 skb_push(skb, ETH_HLEN); edsa_rcv()
|
H A D | tag_brcm.c | 137 memmove(skb->data - ETH_HLEN, brcm_tag_rcv() 138 skb->data - ETH_HLEN - BRCM_TAG_LEN, brcm_tag_rcv() 141 skb_push(skb, ETH_HLEN); brcm_tag_rcv()
|
H A D | tag_dsa.c | 157 memmove(skb->data - ETH_HLEN, dsa_rcv() 158 skb->data - ETH_HLEN - DSA_HLEN, dsa_rcv() 163 skb_push(skb, ETH_HLEN); dsa_rcv()
|
H A D | tag_trailer.c | 91 skb_push(skb, ETH_HLEN); trailer_rcv()
|
/linux-4.4.14/net/netfilter/ |
H A D | nft_payload.c | 30 if (offset < ETH_HLEN) { nft_payload_copy_vlan() 31 u8 ethlen = min_t(u8, len, ETH_HLEN - offset); nft_payload_copy_vlan() 33 if (skb_copy_bits(skb, mac_off, &veth, ETH_HLEN)) nft_payload_copy_vlan() 45 offset = ETH_HLEN; nft_payload_copy_vlan()
|
H A D | xt_mac.c | 37 if (skb_mac_header(skb) + ETH_HLEN > skb->data) mac_mt()
|
H A D | nfnetlink_log.c | 534 hwhdrp -= ETH_HLEN; __build_packet_message()
|
/linux-4.4.14/net/batman-adv/ |
H A D | fragmentation.c | 282 memmove(skb_out->data - ETH_HLEN, skb_mac_header(skb_out), ETH_HLEN); batadv_frag_merge_packets() 283 skb_set_mac_header(skb_out, -ETH_HLEN); batadv_frag_merge_packets() 376 skb->len + ETH_HLEN); batadv_frag_skb_fwd() 412 skb_fragment = netdev_alloc_skb(NULL, mtu + ETH_HLEN); batadv_frag_create() 419 skb_reserve(skb_fragment, header_size + ETH_HLEN); batadv_frag_create() 486 skb_fragment->len + ETH_HLEN); batadv_frag_send_packet() 498 pskb_expand_head(skb, header_size + ETH_HLEN, 0, GFP_ATOMIC) < 0) batadv_frag_send_packet() 506 skb->len + ETH_HLEN); batadv_frag_send_packet()
|
H A D | network-coding.c | 636 nc_packet->skb->len + ETH_HLEN); batadv_nc_fwd_flush() 1165 count = skb_src->len + ETH_HLEN; batadv_nc_code_packets() 1166 count += skb_dest->len + ETH_HLEN; batadv_nc_code_packets() 1172 count = skb_src->len + ETH_HLEN; batadv_nc_code_packets() 1173 count += skb_dest->len + ETH_HLEN; batadv_nc_code_packets() 1181 skb_src->len + ETH_HLEN); batadv_nc_code_packets() 1184 skb_dest->len + ETH_HLEN); batadv_nc_code_packets() 1190 skb_src->len + ETH_HLEN); batadv_nc_code_packets() 1193 skb_dest->len + ETH_HLEN); batadv_nc_code_packets() 1380 skb_push(skb, ETH_HLEN); batadv_nc_skb_store_before_coding() 1580 if (unlikely(!pskb_may_pull(skb, ETH_HLEN))) batadv_nc_skb_store_for_decoding() 1583 if (unlikely(!skb_pull_rcsum(skb, ETH_HLEN))) batadv_nc_skb_store_for_decoding() 1617 skb_push(skb, ETH_HLEN); batadv_nc_skb_store_sniffed_unicast() 1658 skb_set_mac_header(skb, -ETH_HLEN); batadv_nc_skb_decode_packet() 1842 skb->len + ETH_HLEN); batadv_nc_recv_coded_packet()
|
H A D | icmp_socket.c | 206 skb = netdev_alloc_skb_ip_align(NULL, packet_len + ETH_HLEN); batadv_socket_write() 213 skb_reserve(skb, ETH_HLEN); batadv_socket_write()
|
H A D | routing.c | 245 if (skb_cow(skb, ETH_HLEN) < 0) batadv_recv_my_icmp_packet() 299 if (skb_cow(skb, ETH_HLEN) < 0) batadv_recv_icmp_ttl_exceeded() 359 if (skb_cow(skb, ETH_HLEN) < 0) batadv_recv_icmp_packet() 386 if (skb_cow(skb, ETH_HLEN) < 0) batadv_recv_icmp_packet() 605 if (skb_cow(skb, ETH_HLEN) < 0) batadv_route_unicast_packet() 635 skb->len + ETH_HLEN); batadv_route_unicast_packet() 716 if (!pskb_may_pull(skb, hdr_len + ETH_HLEN)) batadv_check_unicast_ttvn()
|
H A D | distributed-arp-table.c | 176 addr += ETH_HLEN + sizeof(struct arphdr); batadv_arp_hw_src() 849 if (unlikely(!pskb_may_pull(skb, hdr_size + ETH_HLEN))) batadv_arp_get_type() 858 if (unlikely(!pskb_may_pull(skb, hdr_size + ETH_HLEN + batadv_arp_get_type() 862 arphdr = (struct arphdr *)(skb->data + hdr_size + ETH_HLEN); batadv_arp_get_type() 919 /* ARP parsing functions jump forward of hdr_size + ETH_HLEN. batadv_dat_get_vid() 1002 bat_priv->stats.rx_bytes += skb->len + ETH_HLEN + hdr_size; batadv_dat_snoop_outgoing_arp_request()
|
H A D | main.c | 318 return header_len + ETH_HLEN; batadv_max_header_len() 407 if (unlikely(skb->mac_len != ETH_HLEN || !skb_mac_header(skb))) batadv_batman_skb_recv() 1158 skb = netdev_alloc_skb_ip_align(NULL, ETH_HLEN + hdr_len + tvlv_len); batadv_tvlv_unicast_send() 1163 skb_reserve(skb, ETH_HLEN); batadv_tvlv_unicast_send()
|
H A D | gateway_client.c | 681 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) batadv_gw_dhcp_recipient_get() 686 *header_len += ETH_HLEN; batadv_gw_dhcp_recipient_get()
|
H A D | hard-interface.c | 262 unsigned short lower_header_len = ETH_HLEN; batadv_hardif_recalc_extra_skbroom() 286 needed_headroom = lower_headroom + (lower_header_len - ETH_HLEN); batadv_hardif_recalc_extra_skbroom()
|
H A D | send.c | 75 if (batadv_skb_head_push(skb, ETH_HLEN) < 0) batadv_send_skb_packet() 85 skb_set_network_header(skb, ETH_HLEN); batadv_send_skb_packet()
|
H A D | bridge_loop_avoidance.c | 310 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr); batadv_bla_send_claim() 363 skb->len + ETH_HLEN); batadv_bla_send_claim() 890 headlen = ETH_HLEN; batadv_bla_process_claim() 1418 if (!pskb_may_pull(skb, hdr_size + ETH_HLEN)) batadv_bla_is_backbone_gw()
|
H A D | soft-interface.c | 205 int network_offset = ETH_HLEN; batadv_interface_tx() 410 if (unlikely(!pskb_may_pull(skb, ETH_HLEN))) batadv_interface_rx() 443 skb->len + ETH_HLEN); batadv_interface_rx()
|
H A D | bat_iv_ogm.c | 471 skb->len + ETH_HLEN); batadv_iv_ogm_send_to_if() 663 skb_size += ETH_HLEN; batadv_iv_ogm_aggregate_new() 669 skb_reserve(forw_packet_aggr->skb, ETH_HLEN); batadv_iv_ogm_aggregate_new() 1744 skb->len + ETH_HLEN); batadv_iv_ogm_receive()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_rx.c | 100 struct iphdr *ipv4 = (struct iphdr *)(skb->data + ETH_HLEN); mlx5e_lro_update_hdr() 101 struct ipv6hdr *ipv6 = (struct ipv6hdr *)(skb->data + ETH_HLEN); mlx5e_lro_update_hdr() 108 u16 tot_len = be32_to_cpu(cqe->byte_cnt) - ETH_HLEN; mlx5e_lro_update_hdr() 111 tcp = (struct tcphdr *)(skb->data + ETH_HLEN + mlx5e_lro_update_hdr() 116 tcp = (struct tcphdr *)(skb->data + ETH_HLEN + mlx5e_lro_update_hdr()
|
H A D | en_tx.c | 127 #define MLX5E_MIN_INLINE ETH_HLEN mlx5e_get_inline_hdr_size()
|
H A D | en_main.c | 306 #define MLX5E_HW2SW_MTU(hwmtu) (hwmtu - (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)) 307 #define MLX5E_SW2HW_MTU(swmtu) (swmtu + (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
|
/linux-4.4.14/drivers/net/ |
H A D | ntb_netdev.c | 133 skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); ntb_netdev_rx_handler() 141 rc = ntb_transport_rx_enqueue(qp, skb, skb->data, ndev->mtu + ETH_HLEN); ntb_netdev_rx_handler() 258 skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); ntb_netdev_open() 265 ndev->mtu + ETH_HLEN); ntb_netdev_open() 308 if (new_mtu > ntb_transport_max_size(dev->qp) - ETH_HLEN) ntb_netdev_change_mtu() 326 skb = netdev_alloc_skb(ndev, new_mtu + ETH_HLEN); ntb_netdev_change_mtu() 333 new_mtu + ETH_HLEN); ntb_netdev_change_mtu() 443 ndev->mtu = ntb_transport_max_size(dev->qp) - ETH_HLEN; ntb_netdev_probe()
|
H A D | macvtap.c | 357 skb_push(skb, ETH_HLEN); macvtap_handle_frame() 707 #define MACVTAP_RESERVE HH_DATA_OFF(ETH_HLEN) 753 if (unlikely(len < ETH_HLEN)) macvtap_get_user() 763 else if (copylen < ETH_HLEN) macvtap_get_user() 764 copylen = ETH_HLEN; macvtap_get_user() 777 else if (linear < ETH_HLEN) macvtap_get_user() 778 linear = ETH_HLEN; macvtap_get_user() 799 skb_set_network_header(skb, ETH_HLEN); macvtap_get_user() 809 skb_probe_transport_header(skb, ETH_HLEN); macvtap_get_user()
|
H A D | loopback.c | 166 dev->hard_header_len = ETH_HLEN; /* 14 */ loopback_setup()
|
H A D | geneve.c | 227 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); geneve_rx() 1198 encap_len = GENEVE_BASE_HLEN + ETH_HLEN; geneve_configure() 1203 dev->needed_headroom = encap_len + ETH_HLEN; geneve_configure()
|
H A D | macvlan.c | 262 macvlan_count_rx(vlan, skb->len + ETH_HLEN, macvlan_broadcast() 377 len = nskb->len + ETH_HLEN; macvlan_forward_source_one() 452 len = skb->len + ETH_HLEN; macvlan_handle_frame()
|
H A D | tun.c | 1130 if (unlikely(len < ETH_HLEN || tun_get_user() 1131 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN))) tun_get_user()
|
H A D | virtio_net.c | 40 #define GOOD_PACKET_LEN (ETH_HLEN + VLAN_HLEN + ETH_DATA_LEN) 446 if (unlikely(len < vi->hdr_len + ETH_HLEN)) { receive_buf()
|
H A D | vxlan.c | 1174 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); vxlan_rcv() 2775 unsigned short needed_headroom = ETH_HLEN; vxlan_dev_configure()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
H A D | mic.c | 52 u8 hdr[ETH_HLEN + 2]; /* size of header + padding */ orinoco_mic()
|
H A D | main.c | 330 (priv->nicbuf_size - ETH_HLEN)) orinoco_change_mtu() 416 size_t len = skb->len - ETH_HLEN; orinoco_process_xmit_skb() 428 skb->data + ETH_HLEN, orinoco_process_xmit_skb() 474 if (skb->len < ETH_HLEN) orinoco_xmit() 917 skb = dev_alloc_skb(length + ETH_HLEN + 2 + 1); __orinoco_ev_rx() 927 skb_reserve(skb, ETH_HLEN + 2); __orinoco_ev_rx() 1048 ETH_HLEN - ENCAPS_OVERHEAD); orinoco_rx() 1051 hdr = (struct ethhdr *)skb_push(skb, ETH_HLEN); orinoco_rx() 2037 priv->nicbuf_size = IEEE80211_MAX_FRAME_LEN + ETH_HLEN; orinoco_init()
|
H A D | orinoco_usb.c | 1224 if (skb->len < ETH_HLEN) ezusb_xmit()
|
/linux-4.4.14/net/ipv6/netfilter/ |
H A D | ip6t_eui64.c | 28 skb_mac_header(skb) + ETH_HLEN <= skb->data) && eui64_mt6()
|
H A D | nf_log_ipv6.c | 320 p -= ETH_HLEN; dump_ipv6_mac_header()
|
/linux-4.4.14/net/ethernet/ |
H A D | eth.c | 83 struct ethhdr *eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); eth_header() 100 return ETH_HLEN; eth_header() 109 return ETH_HLEN; eth_header() 112 return -ETH_HLEN; eth_header() 162 skb_pull_inline(skb, ETH_HLEN); eth_type_trans() 238 hh->hh_len = ETH_HLEN; eth_header_cache() 355 dev->hard_header_len = ETH_HLEN; ether_setup()
|
/linux-4.4.14/drivers/staging/gdm724x/ |
H A D | gdm_lte.c | 95 nic->stats.rx_bytes += skb->len + ETH_HLEN; gdm_lte_rx() 129 mac_header_len = ETH_HLEN; gdm_lte_emulate_arp() 174 skb_pull(skb_out, ETH_HLEN); gdm_lte_emulate_arp() 258 mac_header_len = ETH_HLEN; gdm_lte_emulate_ndp() 340 skb_pull(skb_out, ETH_HLEN); gdm_lte_emulate_ndp() 370 network_data = skb->data + ETH_HLEN; gdm_lte_tx_nic_type() 453 data_buf = skb->data + (VLAN_ETH_HLEN - ETH_HLEN); gdm_lte_tx() 454 data_len = skb->len - (VLAN_ETH_HLEN - ETH_HLEN); gdm_lte_tx() 639 mac_header_len = ETH_HLEN; gdm_lte_netif_rx() 681 skb_pull(skb, ETH_HLEN); gdm_lte_netif_rx()
|
H A D | gdm_usb.c | 746 send_len = len - ETH_HLEN; gdm_usb_sdu_send() 748 memcpy(sdu->data, data + ETH_HLEN, len - ETH_HLEN); gdm_usb_sdu_send()
|
/linux-4.4.14/net/caif/ |
H A D | caif_usb.c | 34 u8 tx_eth_hdr[ETH_HLEN]; 65 if (skb_headroom(skb) < ETH_HLEN + CFUSB_PAD_DESCR_SZ + hpad) { cfusbl_transmit()
|
/linux-4.4.14/net/openvswitch/ |
H A D | vport-netdev.c | 60 skb_push(skb, ETH_HLEN); netdev_port_receive() 61 skb_postpush_rcsum(skb, skb->data, ETH_HLEN); netdev_port_receive()
|
H A D | vport-internal_dev.c | 262 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); internal_dev_recv()
|
H A D | actions.c | 195 hdr = (struct ethhdr *)(skb_mpls_header(skb) - ETH_HLEN); pop_mpls() 270 err = skb_ensure_writable(skb, ETH_HLEN); set_eth_addr() 744 if (likely(!mru || (skb->len <= mru + ETH_HLEN))) { do_output()
|
H A D | vport.c | 485 unsigned int length = skb->len - ETH_HLEN; packet_length()
|
H A D | flow.c | 445 * The caller must ensure that skb->len >= ETH_HLEN.
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
H A D | sunvnet.h | 19 #define VNET_MAXPACKET (65535ULL + ETH_HLEN + VLAN_HLEN)
|
/linux-4.4.14/drivers/net/ethernet/ti/ |
H A D | cpts.c | 261 offset += ETH_HLEN + IPV4_HLEN(data + offset) + UDP_HLEN; cpts_match() 264 offset += ETH_HLEN + IP6_HLEN + UDP_HLEN; cpts_match() 267 offset += ETH_HLEN; cpts_match() 273 if (skb->len + ETH_HLEN < offset + OFF_PTP_SEQUENCE_ID + sizeof(*seqid)) cpts_match()
|
/linux-4.4.14/drivers/staging/wlan-ng/ |
H A D | p80211conv.c | 138 skb_pull(skb, ETH_HLEN); skb_ether_to_p80211() 147 skb_pull(skb, ETH_HLEN); skb_ether_to_p80211() 368 if (payload_length > (netdev->mtu + ETH_HLEN)) { skb_p80211_to_ether() 372 payload_length, netdev->mtu + ETH_HLEN); skb_p80211_to_ether() 409 e_hdr = (struct wlan_ethhdr *)skb_push(skb, ETH_HLEN); skb_p80211_to_ether() 449 e_hdr = (struct wlan_ethhdr *)skb_push(skb, ETH_HLEN); skb_p80211_to_ether() 476 e_hdr = (struct wlan_ethhdr *)skb_push(skb, ETH_HLEN); skb_p80211_to_ether()
|
/linux-4.4.14/net/bridge/ |
H A D | br_netfilter_hooks.c | 97 return *((__be16 *)(skb_mac_header(skb) + ETH_HLEN + pppoe_proto() 112 #define NF_BRIDGE_MAX_MAC_HEADER_LENGTH (PPPOE_SES_HLEN + ETH_HLEN) 280 -(ETH_HLEN-ETH_ALEN), br_nf_pre_routing_finish_bridge() 282 ETH_HLEN-ETH_ALEN); br_nf_pre_routing_finish_bridge() 750 data->size = ETH_HLEN + data->encap_size; br_nf_dev_queue_xmit() 771 data->size = ETH_HLEN + data->encap_size; br_nf_dev_queue_xmit() 862 skb_pull(skb, ETH_HLEN); br_nf_pre_routing_finish_bridge_slow() 865 BUILD_BUG_ON(sizeof(nf_bridge->neigh_header) != (ETH_HLEN - ETH_ALEN)); br_nf_pre_routing_finish_bridge_slow() 867 skb_copy_to_linear_data_offset(skb, -(ETH_HLEN - ETH_ALEN), br_nf_pre_routing_finish_bridge_slow() 869 ETH_HLEN - ETH_ALEN); br_nf_pre_routing_finish_bridge_slow()
|
H A D | br_forward.c | 45 skb_push(skb, ETH_HLEN); br_dev_queue_push_xmit() 94 skb_push(skb, ETH_HLEN); __br_deliver()
|
H A D | br_device.c | 59 skb_pull(skb, ETH_HLEN); br_dev_xmit()
|
H A D | br_vlan.c | 386 skb_push(skb, ETH_HLEN); __allowed_ingress() 392 skb_pull(skb, ETH_HLEN); __allowed_ingress()
|
/linux-4.4.14/drivers/net/ethernet/qualcomm/ |
H A D | qca_framing.h | 51 #define QCAFRM_ETHMINLEN (QCAFRM_ETHMINMTU + ETH_HLEN)
|
/linux-4.4.14/net/bluetooth/bnep/ |
H A D | core.c | 291 ETH_HLEN, /* BNEP_GENERAL */ 366 nskb = alloc_skb(2 + ETH_HLEN + skb->len, GFP_KERNEL); bnep_rx_frame() 377 memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN); bnep_rx_frame() local
|
/linux-4.4.14/net/netfilter/ipset/ |
H A D | ip_set_hash_mac.c | 92 (skb_mac_header(skb) + ETH_HLEN) > skb->data) hash_mac4_kadt()
|
H A D | ip_set_bitmap_ipmac.c | 231 (skb_mac_header(skb) + ETH_HLEN) > skb->data) bitmap_ipmac_kadt()
|
/linux-4.4.14/drivers/net/wireless/libertas/ |
H A D | rx.c | 88 if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) { lbs_process_rxed_packet() 231 if (skb->len < (ETH_HLEN + 8 + sizeof(struct rxpd))) { process_rxed_802_11_packet()
|
/linux-4.4.14/drivers/net/fjes/ |
H A D | fjes_hw.h | 76 (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN) 81 (ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN))
|
/linux-4.4.14/drivers/net/ethernet/freescale/fs_enet/ |
H A D | fs_enet.h | 114 #define PKT_MAXBUF_SIZE (MAX_MTU+ETH_HLEN+CRC_LEN) 115 #define PKT_MINBUF_SIZE (MIN_MTU+ETH_HLEN+CRC_LEN)
|
/linux-4.4.14/drivers/net/wimax/i2400m/ |
H A D | netdev.c | 223 skb_pull(skb, ETH_HLEN); i2400m_tx_prep_header() 513 skb->data - ETH_HLEN, i2400m_net_rx() 515 skb_set_mac_header(skb, -ETH_HLEN); i2400m_net_rx() 566 skb->data - ETH_HLEN, i2400m_net_erx() 568 skb_set_mac_header(skb, -ETH_HLEN); i2400m_net_erx()
|
H A D | i2400m.h | 615 u8 src_mac_addr[ETH_HLEN];
|
H A D | rx.c | 994 BUILD_BUG_ON(ETH_HLEN > sizeof(*hdr)); i2400m_rx_edata()
|
/linux-4.4.14/drivers/net/wireless/ |
H A D | ray_cs.c | 968 sizeof(struct snaphdr_t), data + ETH_HLEN, translate_frame() 969 len - ETH_HLEN); translate_frame() 970 return (int)sizeof(struct snaphdr_t) - ETH_HLEN; translate_frame() 975 memcpy_toio(&ptx->var, data + ETH_HLEN, len - ETH_HLEN); translate_frame() 976 return 0 - ETH_HLEN; translate_frame() 978 memcpy_toio(&ptx->var, data + ETH_HLEN, len - ETH_HLEN); translate_frame() 979 return 0 - ETH_HLEN; translate_frame() 2128 if (rx_len < (ETH_HLEN + RX_MAC_HEADER_LENGTH) || rx_data() 2130 (dev->mtu + RX_MAC_HEADER_LENGTH + ETH_HLEN + rx_data() 2139 if (rx_len < (ETH_HLEN + RX_MAC_HEADER_LENGTH) || rx_data() 2141 (dev->mtu + RX_MAC_HEADER_LENGTH + ETH_HLEN + rx_data() 2314 delta = RX_MAC_HEADER_LENGTH - ETH_HLEN; untranslate() 2322 + sizeof(struct snaphdr_t) - ETH_HLEN; untranslate() 2330 delta = RX_MAC_HEADER_LENGTH - ETH_HLEN; untranslate() 2338 sizeof(struct snaphdr_t) - ETH_HLEN; untranslate() 2345 delta = RX_MAC_HEADER_LENGTH - ETH_HLEN; untranslate()
|
/linux-4.4.14/drivers/net/phy/ |
H A D | dp83640.c | 807 offset += ETH_HLEN + IPV4_HLEN(data + offset) + UDP_HLEN; match() 810 offset += ETH_HLEN + IP6_HLEN + UDP_HLEN; match() 813 offset += ETH_HLEN; match() 819 if (skb->len + ETH_HLEN < offset + OFF_PTP_SEQUENCE_ID + sizeof(*seqid)) match() 975 offset += ETH_HLEN + IPV4_HLEN(data + offset) + UDP_HLEN; is_sync() 978 offset += ETH_HLEN + IP6_HLEN + UDP_HLEN; is_sync() 981 offset += ETH_HLEN; is_sync()
|
/linux-4.4.14/drivers/staging/most/aim-network/ |
H A D | networking.c | 87 unsigned int payload_len = skb->len - ETH_HLEN; skb_to_mamac() 96 if (skb->len < ETH_HLEN) { skb_to_mamac() 127 memcpy(buff, skb->data + ETH_HLEN, payload_len); skb_to_mamac()
|
/linux-4.4.14/drivers/staging/rtl8712/ |
H A D | xmit_linux.c | 87 _r8712_pktfile_read(ppktfile, (unsigned char *)ðerhdr, ETH_HLEN); r8712_set_qos()
|
H A D | rtl8712_recv.c | 347 while (a_len > ETH_HLEN) { amsdu_to_msdu() 359 pdata += ETH_HLEN; amsdu_to_msdu() 360 a_len -= ETH_HLEN; amsdu_to_msdu() 376 padding_len = 4 - ((nSubframe_Length + ETH_HLEN) & 3); amsdu_to_msdu()
|
H A D | rtl871x_xmit.c | 201 _r8712_pktfile_read(&pktfile, (unsigned char *)ðerhdr, ETH_HLEN); r8712_update_attrib() 294 pattrib->pkt_hdrlen = ETH_HLEN; r8712_update_attrib()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_selftest.c | 60 skb = netdev_alloc_skb(priv->dev, MLX4_LOOPBACK_TEST_PAYLOAD + ETH_HLEN + NET_IP_ALIGN); mlx4_en_test_loopback_xmit()
|
H A D | en_rx.c | 643 int offset = ETH_HLEN; validate_loopback() 1088 int eff_mtu = dev->mtu + ETH_HLEN + (2 * VLAN_HLEN); mlx4_en_calc_rx_buf()
|
H A D | mlx4_en.h | 164 #define MLX4_LOOPBACK_TEST_PAYLOAD (HEADER_COPY_SIZE - ETH_HLEN)
|
H A D | port.c | 751 ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN); mlx4_common_set_port()
|
/linux-4.4.14/drivers/net/usb/ |
H A D | cdc_mbim.c | 234 if (skb->len <= ETH_HLEN) cdc_mbim_tx_fixup() 250 skb_pull(skb, ETH_HLEN); cdc_mbim_tx_fixup() 389 skb = netdev_alloc_skb_ip_align(dev->net, len + ETH_HLEN); cdc_mbim_process_dgram() 394 skb_put(skb, ETH_HLEN); cdc_mbim_process_dgram()
|
H A D | cdc_eem.c | 291 if (len < (ETH_HLEN + ETH_FCS_LEN)) eem_rx_fixup()
|
H A D | sierra_net.c | 76 u8 ethr_hdr_tmpl[ETH_HLEN]; /* ethernet header template for rx'd pkts */ 214 if (!pskb_may_pull(skb, ETH_HLEN)) check_ethip_packet() 838 ETH_HLEN); sierra_net_rx_fixup()
|
H A D | asix_common.c | 120 if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) { asix_rx_fixup_internal()
|
H A D | dm9601.c | 370 dev->rx_urb_size = dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD + 1; dm9601_bind()
|
H A D | qmi_wwan.c | 106 if (skb_headroom(skb) < ETH_HLEN) qmi_wwan_rx_fixup() 108 skb_push(skb, ETH_HLEN); qmi_wwan_rx_fixup()
|
H A D | smsc75xx.c | 919 ret = smsc75xx_set_rx_max_frame_length(dev, new_mtu + ETH_HLEN); smsc75xx_change_mtu() 1328 ret = smsc75xx_set_rx_max_frame_length(dev, dev->net->mtu + ETH_HLEN); smsc75xx_reset() 2144 if (unlikely(size > (MAX_SINGLE_PACKET_SIZE + ETH_HLEN + 12))) { smsc75xx_rx_fixup()
|
H A D | sr9800.c | 84 if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) || sr_rx_fixup()
|
H A D | cdc_ncm.c | 418 return ETH_HLEN; cdc_ncm_eth_hlen() 1441 (len > ctx->rx_max) || (len < ETH_HLEN)) { cdc_ncm_rx_fixup()
|
H A D | lan78xx.c | 1645 ret = lan78xx_set_rx_max_frame_length(dev, new_mtu + ETH_HLEN); lan78xx_change_mtu() 1928 ret = lan78xx_set_rx_max_frame_length(dev, dev->net->mtu + ETH_HLEN); lan78xx_reset()
|
/linux-4.4.14/drivers/block/aoe/ |
H A D | aoenet.c | 146 skb_push(skb, ETH_HLEN); /* (1) */ aoenet_rcv()
|
/linux-4.4.14/net/hsr/ |
H A D | hsr_slave.c | 43 skb_push(skb, ETH_HLEN); hsr_handle_frame()
|
H A D | hsr_forward.c | 154 movelen = ETH_HLEN; create_tagged_skb() 194 skb_pull(skb, ETH_HLEN); hsr_deliver_master()
|
H A D | hsr_device.c | 259 const int min_size = ETH_ZLEN - HSR_HLEN - ETH_HLEN; hsr_pad()
|
/linux-4.4.14/net/bridge/netfilter/ |
H A D | nft_reject_bridge.c | 32 eth = (struct ethhdr *)skb_push(nskb, ETH_HLEN); nft_reject_br_push_etherhdr() 37 skb_pull(nskb, ETH_HLEN); nft_reject_br_push_etherhdr()
|
/linux-4.4.14/drivers/infiniband/hw/nes/ |
H A D | nes_mgt.c | 177 struct iphdr *iph = (struct iphdr *)(cb->data_start + ETH_HLEN); nes_get_seq() 337 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); get_fpdu_info() 341 tot_len = fpdu_info->hdr_len + fpdu_len - ETH_HLEN; get_fpdu_info() 357 iph = (struct iphdr *)(fpdu_info->hdr_vbase + ETH_HLEN); get_fpdu_info() 386 iph = (struct iphdr *)(cb->data_start + ETH_HLEN); get_fpdu_info() 590 cb->data_start = skb->data - ETH_HLEN; mgt_thread()
|
H A D | nes.h | 173 #define max_frame_len (max_mtu+ETH_HLEN)
|
H A D | nes_cm.c | 449 memset(skb->data, 0x00, ETH_HLEN + sizeof(*iph) + sizeof(*tcph)); form_cm_frame() 451 buf = skb_put(skb, packetsize + ETH_HLEN); form_cm_frame() 454 buf += ETH_HLEN; form_cm_frame() 460 skb_set_network_header(skb, ETH_HLEN); form_cm_frame() 461 skb_set_transport_header(skb, ETH_HLEN + sizeof(*iph)); form_cm_frame() 469 skb->mac_len = ETH_HLEN; form_cm_frame() 1642 sizeof(struct tcphdr) - ETH_HLEN - VLAN_HLEN; make_cm_node()
|
H A D | nes_nic.c | 1675 netdev->hard_header_len = ETH_HLEN; nes_netdev_init()
|
/linux-4.4.14/net/iucv/ |
H A D | af_iucv.c | 323 memset(skb->head, 0, ETH_HLEN); afiucv_hs_send() 328 skb_push(skb, ETH_HLEN); afiucv_hs_send() 462 blen = sizeof(struct af_iucv_trans_hdr) + ETH_HLEN; iucv_send_ctrl() 1115 len + sizeof(struct af_iucv_trans_hdr) + ETH_HLEN, 1122 skb_reserve(skb, sizeof(struct af_iucv_trans_hdr) + ETH_HLEN); 1660 sizeof(struct af_iucv_trans_hdr) - ETH_HLEN : iucv_sock_getsockopt() 1914 skb_push(skb, ETH_HLEN); afiucv_swap_src_dest() 1915 memset(skb->data, 0, ETH_HLEN); afiucv_swap_src_dest() 2125 skb_pull(skb, ETH_HLEN); afiucv_hs_rcv()
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.c | 221 unsigned int sz = mtu_max + ETH_HLEN + wil_rx_snaplen(); wil_vring_alloc_skb() 385 unsigned int sz = mtu_max + ETH_HLEN + snaplen; wil_vring_reap_rx() 487 if (unlikely(skb->len < ETH_HLEN + snaplen)) { wil_vring_reap_rx() 1118 d->dma.b11 = ETH_HLEN; /* MAC header length */ wil_tx_desc_offload_setup_tso() 1154 d->dma.b11 = ETH_HLEN; /* MAC header length */ wil_tx_desc_offload_setup() 1266 hdrlen = ETH_HLEN + __wil_tx_vring_tso()
|
H A D | wmi.c | 530 int sz = eapol_len + ETH_HLEN; wmi_evt_eapol_rx() 554 eth = (struct ethhdr *)skb_put(skb, ETH_HLEN); wmi_evt_eapol_rx()
|
/linux-4.4.14/drivers/net/wireless/hostap/ |
H A D | hostap_80211_tx.c | 79 if (skb->len < ETH_HLEN) { hostap_data_start_xmit() 128 skip_header_bytes = ETH_HLEN; hostap_data_start_xmit()
|
H A D | hostap_80211_rx.c | 1057 skb->len >= ETH_HLEN + ETH_ALEN) { hostap_80211_rx() 1094 /* skb2->network_header += ETH_HLEN; */ hostap_80211_rx()
|
/linux-4.4.14/drivers/net/ipvlan/ |
H A D | ipvlan_core.c | 230 len = skb->len + ETH_HLEN; ipvlan_process_multicast() 267 len = skb->len + ETH_HLEN; ipvlan_rcv_frame()
|
/linux-4.4.14/include/net/ |
H A D | neighbour.h | 442 hh_alen = HH_DATA_ALIGN(ETH_HLEN); neigh_hh_bridge() 443 memcpy(skb->data - hh_alen, hh->hh_data, ETH_ALEN + hh_alen - ETH_HLEN); neigh_hh_bridge()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | msgbuf.c | 107 u8 txhdr[ETH_HLEN]; 709 msgbuf->tx_pktids, skb, ETH_HLEN, brcmf_msgbuf_txflow() 733 memcpy(tx_msghdr->txhdr, skb->data, ETH_HLEN); brcmf_msgbuf_txflow() 734 tx_msghdr->data_len = cpu_to_le16(skb->len - ETH_HLEN); brcmf_msgbuf_txflow()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qede/ |
H A D | qede.h | 138 #define ETH_OVERHEAD (ETH_HLEN + 8 + 8)
|
H A D | qede_ethtool.c | 350 ((new_mtu + ETH_HLEN) < ETH_MIN_PACKET_SIZE)) { qede_change_mtu()
|
/linux-4.4.14/drivers/net/ethernet/brocade/bna/ |
H A D | bnad.h | 110 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
|
H A D | bnad.c | 2952 if (unlikely(skb->len <= ETH_HLEN)) { bnad_start_xmit() 3307 if (new_mtu + ETH_HLEN < ETH_ZLEN || new_mtu > BNAD_JUMBO_MTU) bnad_change_mtu()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | if_ether.h | 32 #define ETH_HLEN 14 /* Total octets in header. */ macro
|
/linux-4.4.14/net/l2tp/ |
H A D | l2tp_eth.c | 158 if (!pskb_may_pull(skb, ETH_HLEN)) l2tp_eth_dev_recv()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_main.c | 443 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; atl1e_change_mtu() 623 hw->rx_jumbo_th = (hw->max_frame_size + ETH_HLEN + atl1e_sw_init() 747 + ETH_HLEN + VLAN_HLEN atl1e_init_ring_resources() 955 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; atl1e_configure_tx() 1138 AT_WRITE_REG(hw, REG_MTU, hw->max_frame_size + ETH_HLEN + atl1e_configure() 1373 u16 head_len = ETH_HLEN; atl1e_rx_checksum() 1908 if (skb_network_offset(skb) != ETH_HLEN) atl1e_xmit_frame()
|
/linux-4.4.14/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 1691 reg |= PAS_MAC_CFG_MACCFG_MAXF(new_mtu + ETH_HLEN + 4); pasemi_mac_change_mtu() 1695 /* MTU + ETH_HLEN + VLAN_HLEN + 2 64B cachelines */ pasemi_mac_change_mtu() 1696 mac->bufsz = new_mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; pasemi_mac_change_mtu() 1810 /* 1500 MTU + ETH_HLEN + VLAN_HLEN + 2 64B cachelines */ pasemi_mac_probe() 1811 mac->bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; pasemi_mac_probe()
|
/linux-4.4.14/net/atm/ |
H A D | mpc.c | 545 skb_pull(skb, ETH_HLEN); /* get rid of Eth header */ send_via_shortcut() 551 skb_pull(skb, ETH_HLEN); /* get rid of Eth header */ send_via_shortcut() 588 if (skb->len < ETH_HLEN + sizeof(struct iphdr)) mpc_send_packet() 590 skb_set_network_header(skb, ETH_HLEN); mpc_send_packet() 591 if (skb->len < ETH_HLEN + ip_hdr(skb)->ihl * 4 || ip_hdr(skb)->ihl < 5) mpc_send_packet()
|
/linux-4.4.14/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_main.c | 133 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; pch_ptp_match() 1215 memcpy(tmp_skb->data, skb->data, ETH_HLEN); pch_gbe_tx_queue() 1216 tmp_skb->data[ETH_HLEN] = 0x00; pch_gbe_tx_queue() 1217 tmp_skb->data[ETH_HLEN + 1] = 0x00; pch_gbe_tx_queue() 1219 memcpy(&tmp_skb->data[ETH_HLEN + 2], &skb->data[ETH_HLEN], pch_gbe_tx_queue() 1220 (skb->len - ETH_HLEN)); pch_gbe_tx_queue() 2040 hw->mac.max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; pch_gbe_sw_init() 2275 max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; pch_gbe_change_mtu()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_nl.c | 344 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; ixgbe_dcbnl_set_all() 536 int max_frame = dev->mtu + ETH_HLEN + ETH_FCS_LEN; ixgbe_dcbnl_ieee_setets()
|
H A D | ixgbe_sriov.c | 431 int pf_max_frame = dev->mtu + ETH_HLEN; ixgbe_set_vf_lpe() 697 int pf_max_frame = dev->mtu + ETH_HLEN; ixgbe_vf_reset_msg()
|
H A D | ixgbe_main.c | 1747 * we need the header to contain the greater of either ETH_HLEN or ixgbe_pull_tail() 3764 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; ixgbe_set_rx_buffer_len() 4337 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; ixgbe_configure_dcb() 4402 tc = link = dev->mtu + ETH_HLEN + ETH_FCS_LEN + IXGBE_ETH_FRAMING; ixgbe_hpbthresh() 4462 tc = dev->mtu + ETH_HLEN + ETH_FCS_LEN; ixgbe_lpbthresh() 5733 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; ixgbe_change_mtu() 7531 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); ixgbe_xmit_frame_ring()
|
/linux-4.4.14/include/linux/ |
H A D | if_vlan.h | 488 * ETH_HLEN otherwise __vlan_get_protocol() 496 vlan_depth = ETH_HLEN; __vlan_get_protocol()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
H A D | gdm_qos.c | 258 struct iphdr *iph = (struct iphdr *)((char *)ethh + ETH_HLEN); gdm_qos_send_hci_pkt()
|
/linux-4.4.14/net/ipv4/ |
H A D | ip_tunnel_core.c | 99 if (unlikely(!pskb_may_pull(skb, ETH_HLEN))) iptunnel_pull_header()
|
H A D | ip_tunnel.c | 484 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); ip_tunnel_rcv()
|
/linux-4.4.14/net/irda/irlan/ |
H A D | irlan_eth.c | 229 if (skb->len < ETH_HLEN) { irlan_eth_receive()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 1766 return e->h_proto == htons(ETH_P_8021Q) ? VLAN_ETH_HLEN : ETH_HLEN; eth_hdr_len() 1788 if (unlikely(skb_headroom(skb) < dev->hard_header_len - ETH_HLEN)) { t1_start_xmit() 1802 eth_type = skb_network_offset(skb) == ETH_HLEN ? t1_start_xmit() 1816 * Packets shorter than ETH_HLEN can break the MAC, drop them t1_start_xmit() 1821 if (unlikely(skb->len < ETH_HLEN || t1_start_xmit()
|
/linux-4.4.14/drivers/media/dvb-core/ |
H A D | dvb_net.c | 551 priv->ule_skb = dev_alloc_skb( priv->ule_sndu_len + ETH_HLEN + ETH_ALEN ); dvb_net_ule() 563 skb_reserve( priv->ule_skb, ETH_HLEN + ETH_ALEN ); dvb_net_ule() 707 skb_push(priv->ule_skb, ETH_HLEN); dvb_net_ule()
|
/linux-4.4.14/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 422 length += ETH_HLEN + ETH_FCS_LEN; xemaclite_recv_data() 425 length = XEL_ARP_PACKET_SIZE + ETH_HLEN + ETH_FCS_LEN; xemaclite_recv_data() 432 length = proto_type + ETH_HLEN + ETH_FCS_LEN; xemaclite_recv_data()
|
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_enet.c | 67 ip_offset = ETH_HLEN; fill_desc() 233 if (max_size < ETH_HLEN) hns_nic_get_headlen() 240 network += ETH_HLEN; hns_nic_get_headlen()
|
H A D | hns_dsaf_mac.h | 27 #define MAC_DEFAULT_MTU (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN + ETH_DATA_LEN)
|
H A D | hns_dsaf_mac.c | 469 u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; hns_mac_set_mtu()
|
/linux-4.4.14/drivers/usb/gadget/function/ |
H A D | f_eem.c | 477 || (len < (ETH_HLEN + ETH_FCS_LEN))) { eem_unwrap()
|
H A D | u_ether.c | 154 else if (new_mtu <= ETH_HLEN || new_mtu > GETHER_MAX_ETH_FRAME_LEN) ueth_change_mtu() 301 || ETH_HLEN > skb2->len rx_complete()
|
/linux-4.4.14/drivers/staging/rtl8188eu/core/ |
H A D | rtw_recv.c | 1621 while (a_len > ETH_HLEN) { amsdu_to_msdu() 1631 pdata += ETH_HLEN; amsdu_to_msdu() 1632 a_len -= ETH_HLEN; amsdu_to_msdu() 1662 padding_len = 4 - ((nSubframe_Length + ETH_HLEN) & (4-1)); amsdu_to_msdu()
|
H A D | rtw_xmit.c | 412 _rtw_pktfile_read(ppktfile, (unsigned char *)ðerhdr, ETH_HLEN); set_qos() 445 _rtw_pktfile_read(&pktfile, (u8 *)ðerhdr, ETH_HLEN); update_attrib() 527 pattrib->pkt_hdrlen = ETH_HLEN;/* pattrib->ether_type == 0x8100) ? (14 + 4): 14; vlan tag */ update_attrib()
|
/linux-4.4.14/drivers/staging/rtl8723au/core/ |
H A D | rtw_xmit.c | 402 ip_hdr = (struct iphdr *)(pframe + ETH_HLEN); set_qos() 446 pattrib->pktlen = skb->len - ETH_HLEN; update_attrib() 458 pframe += ETH_HLEN; update_attrib() 522 pattrib->pkt_hdrlen = ETH_HLEN; update_attrib()
|
/linux-4.4.14/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 324 static int myri10ge_initial_mtu = MYRI10GE_MAX_ETHER_MTU - ETH_HLEN; 1402 vsum = csum_partial(va + ETH_HLEN, VLAN_HLEN, 0); myri10ge_vlan_rx() 2559 big_pow2 = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD; myri10ge_open() 2563 mgp->big_bytes = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD; myri10ge_open() 2600 cmd.data0 = dev->mtu + ETH_HLEN + VLAN_HLEN; myri10ge_open() 3235 if ((new_mtu < 68) || (ETH_HLEN + new_mtu > MYRI10GE_MAX_ETHER_MTU)) { myri10ge_change_mtu() 4090 if ((myri10ge_initial_mtu + ETH_HLEN) > MYRI10GE_MAX_ETHER_MTU) myri10ge_probe() 4091 myri10ge_initial_mtu = MYRI10GE_MAX_ETHER_MTU - ETH_HLEN; myri10ge_probe() 4092 if ((myri10ge_initial_mtu + ETH_HLEN) < 68) myri10ge_probe()
|
/linux-4.4.14/drivers/net/ethernet/ezchip/ |
H A D | nps_enet.c | 304 max_frame_length = ETH_HLEN + ndev->mtu + ETH_FCS_LEN; nps_enet_hw_enable_control()
|
/linux-4.4.14/drivers/net/ethernet/atheros/alx/ |
H A D | hw.h | 351 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
|
H A D | hw.c | 961 raw_mtu = hw->mtu + ETH_HLEN; alx_configure_basic()
|
H A D | main.c | 809 int max_frame = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; alx_change_mtu()
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
H A D | sky2.c | 1160 size = roundup(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8); sky2_get_rx_threshold() 1172 size = roundup(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8); sky2_get_rx_data_size() 1183 if (size < ETH_HLEN) sky2_get_rx_data_size() 1184 size = ETH_HLEN; sky2_get_rx_data_size() 1283 le->addr = cpu_to_le32((ETH_HLEN << 16) | ETH_HLEN); rx_set_checksum() 1881 mss += ETH_HLEN + ip_hdrlen(skb) + tcp_hdrlen(skb); sky2_xmit_frame() 2477 if (!IS_ALIGNED(re->data_addr + ETH_HLEN, sizeof(u32))) needs_copy()
|
H A D | skge.c | 949 rd->csum1_start = ETH_HLEN; skge_rx_setup() 950 rd->csum2_start = ETH_HLEN; skge_rx_setup() 971 rd->csum2_start = ETH_HLEN; skge_rx_reuse() 2540 skge->rx_buf_size = dev->mtu + ETH_HLEN; skge_up()
|
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
H A D | nic_main.c | 244 new_frs += ETH_HLEN; nic_update_hw_frs() 331 nic->pkind.maxlen = NIC_HW_MAX_FRS + ETH_HLEN; nic_init_hw()
|
/linux-4.4.14/net/wireless/ |
H A D | util.c | 542 if (unlikely(skb->len < ETH_HLEN)) ieee80211_data_from_8023() 594 skip_header_bytes = ETH_HLEN; ieee80211_data_from_8023()
|
/linux-4.4.14/drivers/net/ethernet/ |
H A D | jme.c | 973 if (skb->len < (ETH_HLEN + sizeof(struct iphdr))) jme_udpsum() 977 skb_set_network_header(skb, ETH_HLEN); jme_udpsum() 979 (skb->len < (ETH_HLEN + jme_udpsum() 986 ETH_HLEN + (ip_hdr(skb)->ihl << 2)); jme_udpsum() 2363 if (((new_mtu + ETH_HLEN) > MAX_ETHERNET_JUMBO_PACKET_SIZE) || jme_change_mtu()
|
H A D | jme.h | 271 ETH_HLEN + \
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sge.c | 162 return ALIGN(s->pktshift + ETH_HLEN + VLAN_HLEN + mtu, s->fl_align); fl_mtu_bufsize() 1069 int eth_hdr_len = skb_network_offset(skb) - ETH_HLEN; hwcsum() 1161 if (unlikely(skb->len < ETH_HLEN)) { t4_eth_xmit() 1167 max_pkt_len = ETH_HLEN + dev->mtu; t4_eth_xmit() 1225 int eth_xtra_len = skb_network_offset(skb) - ETH_HLEN; t4_eth_xmit()
|
/linux-4.4.14/drivers/s390/net/ |
H A D | qeth_l2_main.c | 900 data_offset = ETH_HLEN; qeth_l2_hard_start_xmit() 901 hd_len = ETH_HLEN; qeth_l2_hard_start_xmit() 911 skb_mac_header(new_skb), ETH_HLEN); qeth_l2_hard_start_xmit()
|
H A D | qeth_core_main.c | 2784 buf->rx_skb = dev_alloc_skb(QETH_RX_PULL_LEN + ETH_HLEN); qeth_init_input_buffer() 5126 *pskb = dev_alloc_skb(QETH_RX_PULL_LEN + ETH_HLEN); qeth_create_skb_frag() 5131 skb_reserve(*pskb, ETH_HLEN); qeth_create_skb_frag() 5199 headroom = ETH_HLEN; qeth_core_get_next_skb() 6141 sizeof(struct qeth_hdr) + ETH_HLEN, 64, 0, NULL); qeth_core_init()
|
H A D | qeth_l3_main.c | 2879 data_offset = ETH_HLEN; qeth_l3_hard_start_xmit() 2894 skb_pull(new_skb, ETH_HLEN); qeth_l3_hard_start_xmit() 2897 skb_pull(new_skb, ETH_HLEN); qeth_l3_hard_start_xmit()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
H A D | b44.c | 1429 bw32(bp, B44_RXMAXLEN, bp->dev->mtu + ETH_HLEN + 8 + RX_HEADER_LEN); b44_init_hw() 1430 bw32(bp, B44_TXMAXLEN, bp->dev->mtu + ETH_HLEN + 8 + RX_HEADER_LEN); b44_init_hw() 1573 ETH_HLEN); b44_setup_pseudo_magicp()
|
H A D | bcmsysport.h | 37 #define UMAC_MAX_MTU_SIZE (ETH_DATA_LEN + ETH_HLEN + VLAN_HLEN + \
|
H A D | bnx2.c | 3257 if (len > (bp->dev->mtu + ETH_HLEN) && bnx2_rx_int() 4987 val = mtu + ETH_HLEN + ETH_FCS_LEN; bnx2_init_chip() 5383 rx_size = bp->dev->mtu + ETH_HLEN + BNX2_RX_OFFSET + 8; bnx2_set_rx_ring_size() 5827 pkt_size = min(bp->dev->mtu + ETH_HLEN, bp->rx_jumbo_thresh - 4); bnx2_run_loopback() 6631 sizeof(struct ipv6hdr) - ETH_HLEN; bnx2_start_xmit() 7904 if (((new_mtu + ETH_HLEN) > MAX_ETHERNET_JUMBO_PACKET_SIZE) || bnx2_change_mtu() 7905 ((new_mtu + ETH_HLEN) < MIN_ETHERNET_PACKET_SIZE)) bnx2_change_mtu()
|
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/ |
H A D | os_intfs.c | 321 piphdr = (struct iphdr *)(pdata + ETH_HLEN); rtw_recv_select_queue23a()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
H A D | c2_provider.c | 735 netdev->hard_header_len = ETH_HLEN; setup()
|
H A D | c2.c | 101 netdev->mtu + ETH_HLEN + sizeof(struct c2_rxp_hdr) + c2_set_rxbufsize()
|
/linux-4.4.14/drivers/isdn/i4l/ |
H A D | isdn_net.c | 1123 const int pullsize = skb_network_offset(skb) - ETH_HLEN; isdn_net_adjust_hdr() 1354 /* This is simply a copy from std. eth.c EXCEPT we pull ETH_HLEN 1370 skb_pull(skb, ETH_HLEN); isdn_net_type_trans() 1999 ndev->hard_header_len = ETH_HLEN + max_hlhdr_len; isdn_net_init()
|
/linux-4.4.14/drivers/misc/sgi-xp/ |
H A D | xpnet.c | 245 xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN; xpnet_receive()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb.c | 528 lldpmib += ETH_HLEN; i40e_lldp_to_dcb_config()
|
H A D | i40e_fcoe.c | 322 val |= ((FCOE_MTU + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN) i40e_init_pf_fcoe()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
H A D | i40evf_virtchnl.c | 269 + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; i40evf_configure_queues()
|
H A D | i40evf_main.c | 627 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; i40evf_configure_rx() 2054 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; i40evf_change_mtu()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
H A D | selftest.c | 307 if (memcmp(&received->header, &payload->header, ETH_HLEN) != 0) { efx_loopback_rx_packet()
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
H A D | be.h | 73 (ETH_HLEN + ETH_FCS_LEN))
|
H A D | be_main.c | 1024 u16 offset = ETH_HLEN; be_ipv6_exthdr_check() 1067 VLAN_ETH_HLEN : ETH_HLEN; be_lancer_xmit_workarounds() 2053 hdr_len = ETH_HLEN; skb_fill_rx_data() 5372 netif_set_gso_max_size(netdev, 65535 - ETH_HLEN); be_netdev_init()
|
/linux-4.4.14/drivers/net/ethernet/alteon/ |
H A D | acenic.c | 352 #define ACE_STD_BUFSIZE (ACE_STD_MTU + ETH_HLEN + 4) 353 #define ACE_JUMBO_BUFSIZE (ACE_JUMBO_MTU + ETH_HLEN + 4) 2241 writel(dev->mtu + ETH_HLEN + 4, ®s->IfMtu); ace_open() 2554 writel(new_mtu + ETH_HLEN + 4, ®s->IfMtu); ace_change_mtu()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_main.c | 490 roundup(mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN, 8) : AT_RX_BUF_SIZE; atl1c_set_rxbufsize() 538 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; atl1c_change_mtu() 1431 AT_WRITE_REG(hw, REG_MTU, hw->max_frame_size + ETH_HLEN + atl1c_configure_mac() 2256 if (skb_network_offset(skb) != ETH_HLEN) atl1c_xmit_frame()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 2491 bp->dev->mtu : ETH_MAX_PACKET_SIZE) + ETH_HLEN); bnx2x_run_loopback() 2501 memset(packet + 2*ETH_ALEN, 0x77, (ETH_HLEN - 2*ETH_ALEN)); bnx2x_run_loopback() 2502 for (i = ETH_HLEN; i < pkt_size; i++) bnx2x_run_loopback() 2612 for (i = ETH_HLEN; i < pkt_size; i++) bnx2x_run_loopback()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_sriov.c | 404 mtu = bp->dev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; bnxt_hwrm_func_cfg()
|
H A D | bnxt.c | 874 ETH_HLEN; bnxt_gro_skb() 885 ETH_HLEN; bnxt_gro_skb() 2159 rx_size = SKB_DATA_ALIGN(bp->dev->mtu + ETH_HLEN + NET_IP_ALIGN + 8); bnxt_set_ring_params() 3080 req.mru = cpu_to_le16(bp->dev->mtu + ETH_HLEN + ETH_FCS_LEN + bnxt_hwrm_vnic_cfg()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet.h | 31 #define ENET_MAX_MTU_SIZE (ETH_DATA_LEN + ETH_HLEN + VLAN_HLEN + \
|
/linux-4.4.14/drivers/net/bonding/ |
H A D | bond_alb.c | 61 u8 padding[ETH_ZLEN - ETH_HLEN]; 945 skb->network_header = skb->mac_header + ETH_HLEN; alb_send_lp_vid()
|
H A D | bond_3ad.c | 780 skb->network_header = skb->mac_header + ETH_HLEN; ad_lacpdu_send() 823 skb->network_header = skb->mac_header + ETH_HLEN; ad_marker_send()
|
/linux-4.4.14/drivers/net/wireless/ipw2x00/ |
H A D | libipw_rx.c | 760 IEEE80211_FCTL_TODS) && skb->len >= ETH_HLEN + ETH_ALEN) { libipw_rx() 798 /* skb2->network_header += ETH_HLEN; */ libipw_rx()
|
/linux-4.4.14/drivers/net/ethernet/sgi/ |
H A D | ioc3-eth.c | 533 ih = (struct iphdr *) ((char *)eh + ETH_HLEN); ioc3_tcpudp_checksum() 1445 csoff = ETH_HLEN + (ih->ihl << 2); ioc3_start_xmit()
|
/linux-4.4.14/net/ipv6/ |
H A D | ip6_gre.c | 538 if (!pskb_may_pull(skb, ETH_HLEN)) { ip6gre_rcv() 546 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); ip6gre_rcv()
|
/linux-4.4.14/net/mac80211/ |
H A D | tx.c | 1612 !skb_clone_writable(skb, ETH_HLEN) || ieee80211_skb_resize() 2304 skip_header_bytes = ETH_HLEN; ieee80211_build_hdr() 2699 int extra_head = fast_tx->hdr_len - (ETH_HLEN - 2); ieee80211_xmit_fast() 2758 memcpy(ð, skb->data, ETH_HLEN - 2); ieee80211_xmit_fast() 2856 if (unlikely(skb->len < ETH_HLEN)) { __ieee80211_subif_start_xmit()
|
/linux-4.4.14/drivers/net/ethernet/intel/igbvf/ |
H A D | netdev.c | 1576 adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; igbvf_sw_init() 2353 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; igbvf_change_mtu() 2355 if (new_mtu < 68 || new_mtu > INT_MAX - ETH_HLEN - ETH_FCS_LEN || igbvf_change_mtu()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 1119 int eth_hdr_len = skb_network_offset(skb) - ETH_HLEN; hwcsum() 1190 max_pkt_len = ETH_HLEN + dev->mtu; t4vf_eth_xmit() 1284 int eth_xtra_len = skb_network_offset(skb) - ETH_HLEN; t4vf_eth_xmit()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 296 /* we need the header to contain the greater of either ETH_HLEN or fm10k_add_rx_frag() 466 macvlan_count_rx(netdev_priv(dev), skb->len + ETH_HLEN, 1, fm10k_type_trans()
|
H A D | fm10k_netdev.c | 636 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); fm10k_xmit_frame()
|
/linux-4.4.14/drivers/net/ethernet/calxeda/ |
H A D | xgmac.c | 691 int bufsz = priv->dev->mtu + ETH_HLEN + ETH_FCS_LEN; xgmac_rx_refill() 738 bfsize = ALIGN(dev->mtu + ETH_HLEN + ETH_FCS_LEN + NET_IP_ALIGN, 8); xgmac_dma_desc_rings_init()
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-drv.c | 265 rx_buf_size = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; xgbe_calc_rx_buf_size() 1984 max_len = netdev->mtu + ETH_HLEN; xgbe_rx_poll()
|
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/ |
H A D | os_intfs.c | 700 piphdr = (struct iphdr *)(pdata+ETH_HLEN); rtw_recv_select_queue()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | switchx2.c | 223 mtu += MLXSW_TXHDR_LEN + ETH_HLEN; mlxsw_sx_port_mtu_set()
|
H A D | spectrum.c | 261 mtu += MLXSW_TXHDR_LEN + ETH_HLEN; mlxsw_sp_port_mtu_set()
|
/linux-4.4.14/drivers/net/ethernet/xscale/ |
H A D | ixp4xx_eth.c | 269 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; ixp_ptp_match()
|
/linux-4.4.14/drivers/net/hyperv/ |
H A D | netvsc.c | 460 ETH_HLEN; negotiate_nvsp_ver()
|
H A D | netvsc_drv.c | 884 limit = NETVSC_MTU - ETH_HLEN; netvsc_change_mtu()
|
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/ |
H A D | main.c | 1301 dev->needed_headroom = ETH_HLEN; init_netdev()
|
/linux-4.4.14/drivers/net/ethernet/octeon/ |
H A D | octeon_mgmt.c | 44 #define OCTEON_MGMT_RX_HEADROOM (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/ |
H A D | qlge_main.c | 1550 size_t hlen = ETH_HLEN; ql_process_mac_rx_page() 1682 if (skb->len > ndev->mtu + ETH_HLEN) { ql_process_mac_rx_skb() 1769 size_t hlen = ETH_HLEN; ql_build_rx_skb() 1990 if (skb->len > ndev->mtu + ETH_HLEN) { ql_process_mac_split_rx_intr()
|
/linux-4.4.14/drivers/net/ethernet/faraday/ |
H A D | ftgmac100.c | 487 __pskb_pull_tail(skb, ETH_HLEN); ftgmac100_rx_packet()
|
H A D | ftmac100.c | 447 __pskb_pull_tail(skb, ETH_HLEN); ftmac100_rx_packet()
|
/linux-4.4.14/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_main.c | 107 return (eth->h_proto == htons(ETH_P_8021Q)) ? VLAN_ETH_HLEN : ETH_HLEN; xgene_enet_hdr_len()
|
/linux-4.4.14/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 3412 pmConf->filters[i].patternSize = ETH_HLEN + /* Ethernet header*/ vmxnet3_suspend() 3424 ahdr = (struct arphdr *)&pmConf->filters[i].pattern[ETH_HLEN]; vmxnet3_suspend()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/ |
H A D | qla3xxx.c | 2056 size = ETH_HLEN; ql_process_macip_rx_intr() 2058 size += VLAN_ETH_HLEN - ETH_HLEN; ql_process_macip_rx_intr()
|
/linux-4.4.14/drivers/net/ethernet/cadence/ |
H A D | macb.c | 1856 size_t bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + NET_IP_ALIGN; macb_open() 1922 max_mtu = gem_readl(bp, JML) - ETH_HLEN - ETH_FCS_LEN; macb_change_mtu()
|
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/ |
H A D | atl1.c | 952 hw->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; atl1_sw_init() 2705 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; atl1_change_mtu()
|