Searched refs:ETH_HLEN (Results 1 - 200 of 253) sorted by relevance

12

/linux-4.4.14/samples/bpf/
H A Dtcbpf1_kern.c19 #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 Dsockex1_kern.c17 int index = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); bpf_prog1()
H A Dsock_example.c5 * 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 Dsockex2_kern.c101 __u64 nhoff = ETH_HLEN; flow_dissector()
H A Dsockex3_kern.c282 __u32 nhoff = ETH_HLEN; main_prog()
/linux-4.4.14/net/core/
H A Dtimestamping.c66 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 Dnetpoll.c438 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 Dpktgen.c2660 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 Dskbuff.c4292 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 Dtag_edsa.c168 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 Dtag_brcm.c137 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 Dtag_dsa.c157 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 Dtag_trailer.c91 skb_push(skb, ETH_HLEN); trailer_rcv()
/linux-4.4.14/net/netfilter/
H A Dnft_payload.c30 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 Dxt_mac.c37 if (skb_mac_header(skb) + ETH_HLEN > skb->data) mac_mt()
H A Dnfnetlink_log.c534 hwhdrp -= ETH_HLEN; __build_packet_message()
/linux-4.4.14/net/batman-adv/
H A Dfragmentation.c282 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 Dnetwork-coding.c636 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 Dicmp_socket.c206 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 Drouting.c245 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 Ddistributed-arp-table.c176 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 Dmain.c318 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 Dgateway_client.c681 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 Dhard-interface.c262 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 Dsend.c75 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 Dbridge_loop_avoidance.c310 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 Dsoft-interface.c205 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 Dbat_iv_ogm.c471 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 Den_rx.c100 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 Den_tx.c127 #define MLX5E_MIN_INLINE ETH_HLEN mlx5e_get_inline_hdr_size()
H A Den_main.c306 #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 Dntb_netdev.c133 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 Dmacvtap.c357 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 Dloopback.c166 dev->hard_header_len = ETH_HLEN; /* 14 */ loopback_setup()
H A Dgeneve.c227 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 Dmacvlan.c262 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 Dtun.c1130 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 Dvirtio_net.c40 #define GOOD_PACKET_LEN (ETH_HLEN + VLAN_HLEN + ETH_DATA_LEN)
446 if (unlikely(len < vi->hdr_len + ETH_HLEN)) { receive_buf()
H A Dvxlan.c1174 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 Dmic.c52 u8 hdr[ETH_HLEN + 2]; /* size of header + padding */ orinoco_mic()
H A Dmain.c330 (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 Dorinoco_usb.c1224 if (skb->len < ETH_HLEN) ezusb_xmit()
/linux-4.4.14/net/ipv6/netfilter/
H A Dip6t_eui64.c28 skb_mac_header(skb) + ETH_HLEN <= skb->data) && eui64_mt6()
H A Dnf_log_ipv6.c320 p -= ETH_HLEN; dump_ipv6_mac_header()
/linux-4.4.14/net/ethernet/
H A Deth.c83 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 Dgdm_lte.c95 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 Dgdm_usb.c746 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 Dcaif_usb.c34 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 Dvport-netdev.c60 skb_push(skb, ETH_HLEN); netdev_port_receive()
61 skb_postpush_rcsum(skb, skb->data, ETH_HLEN); netdev_port_receive()
H A Dvport-internal_dev.c262 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); internal_dev_recv()
H A Dactions.c195 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 Dvport.c485 unsigned int length = skb->len - ETH_HLEN; packet_length()
H A Dflow.c445 * The caller must ensure that skb->len >= ETH_HLEN.
/linux-4.4.14/drivers/net/ethernet/sun/
H A Dsunvnet.h19 #define VNET_MAXPACKET (65535ULL + ETH_HLEN + VLAN_HLEN)
/linux-4.4.14/drivers/net/ethernet/ti/
H A Dcpts.c261 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 Dp80211conv.c138 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 Dbr_netfilter_hooks.c97 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 Dbr_forward.c45 skb_push(skb, ETH_HLEN); br_dev_queue_push_xmit()
94 skb_push(skb, ETH_HLEN); __br_deliver()
H A Dbr_device.c59 skb_pull(skb, ETH_HLEN); br_dev_xmit()
H A Dbr_vlan.c386 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 Dqca_framing.h51 #define QCAFRM_ETHMINLEN (QCAFRM_ETHMINMTU + ETH_HLEN)
/linux-4.4.14/net/bluetooth/bnep/
H A Dcore.c291 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 Dip_set_hash_mac.c92 (skb_mac_header(skb) + ETH_HLEN) > skb->data) hash_mac4_kadt()
H A Dip_set_bitmap_ipmac.c231 (skb_mac_header(skb) + ETH_HLEN) > skb->data) bitmap_ipmac_kadt()
/linux-4.4.14/drivers/net/wireless/libertas/
H A Drx.c88 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 Dfjes_hw.h76 (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 Dfs_enet.h114 #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 Dnetdev.c223 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 Di2400m.h615 u8 src_mac_addr[ETH_HLEN];
H A Drx.c994 BUILD_BUG_ON(ETH_HLEN > sizeof(*hdr)); i2400m_rx_edata()
/linux-4.4.14/drivers/net/wireless/
H A Dray_cs.c968 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 Ddp83640.c807 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 Dnetworking.c87 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 Dxmit_linux.c87 _r8712_pktfile_read(ppktfile, (unsigned char *)&etherhdr, ETH_HLEN); r8712_set_qos()
H A Drtl8712_recv.c347 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 Drtl871x_xmit.c201 _r8712_pktfile_read(&pktfile, (unsigned char *)&etherhdr, 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 Den_selftest.c60 skb = netdev_alloc_skb(priv->dev, MLX4_LOOPBACK_TEST_PAYLOAD + ETH_HLEN + NET_IP_ALIGN); mlx4_en_test_loopback_xmit()
H A Den_rx.c643 int offset = ETH_HLEN; validate_loopback()
1088 int eff_mtu = dev->mtu + ETH_HLEN + (2 * VLAN_HLEN); mlx4_en_calc_rx_buf()
H A Dmlx4_en.h164 #define MLX4_LOOPBACK_TEST_PAYLOAD (HEADER_COPY_SIZE - ETH_HLEN)
H A Dport.c751 ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN); mlx4_common_set_port()
/linux-4.4.14/drivers/net/usb/
H A Dcdc_mbim.c234 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 Dcdc_eem.c291 if (len < (ETH_HLEN + ETH_FCS_LEN)) eem_rx_fixup()
H A Dsierra_net.c76 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 Dasix_common.c120 if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) { asix_rx_fixup_internal()
H A Ddm9601.c370 dev->rx_urb_size = dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD + 1; dm9601_bind()
H A Dqmi_wwan.c106 if (skb_headroom(skb) < ETH_HLEN) qmi_wwan_rx_fixup()
108 skb_push(skb, ETH_HLEN); qmi_wwan_rx_fixup()
H A Dsmsc75xx.c919 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 Dsr9800.c84 if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) || sr_rx_fixup()
H A Dcdc_ncm.c418 return ETH_HLEN; cdc_ncm_eth_hlen()
1441 (len > ctx->rx_max) || (len < ETH_HLEN)) { cdc_ncm_rx_fixup()
H A Dlan78xx.c1645 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 Daoenet.c146 skb_push(skb, ETH_HLEN); /* (1) */ aoenet_rcv()
/linux-4.4.14/net/hsr/
H A Dhsr_slave.c43 skb_push(skb, ETH_HLEN); hsr_handle_frame()
H A Dhsr_forward.c154 movelen = ETH_HLEN; create_tagged_skb()
194 skb_pull(skb, ETH_HLEN); hsr_deliver_master()
H A Dhsr_device.c259 const int min_size = ETH_ZLEN - HSR_HLEN - ETH_HLEN; hsr_pad()
/linux-4.4.14/net/bridge/netfilter/
H A Dnft_reject_bridge.c32 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 Dnes_mgt.c177 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 Dnes.h173 #define max_frame_len (max_mtu+ETH_HLEN)
H A Dnes_cm.c449 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 Dnes_nic.c1675 netdev->hard_header_len = ETH_HLEN; nes_netdev_init()
/linux-4.4.14/net/iucv/
H A Daf_iucv.c323 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 Dtxrx.c221 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 Dwmi.c530 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 Dhostap_80211_tx.c79 if (skb->len < ETH_HLEN) { hostap_data_start_xmit()
128 skip_header_bytes = ETH_HLEN; hostap_data_start_xmit()
H A Dhostap_80211_rx.c1057 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 Dipvlan_core.c230 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 Dneighbour.h442 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 Dmsgbuf.c107 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 Dqede.h138 #define ETH_OVERHEAD (ETH_HLEN + 8 + 8)
H A Dqede_ethtool.c350 ((new_mtu + ETH_HLEN) < ETH_MIN_PACKET_SIZE)) { qede_change_mtu()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
H A Dbnad.h110 (ETH_HLEN + VLAN_HLEN + (_mtu) + ETH_FCS_LEN)
H A Dbnad.c2952 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 Dif_ether.h32 #define ETH_HLEN 14 /* Total octets in header. */ macro
/linux-4.4.14/net/l2tp/
H A Dl2tp_eth.c158 if (!pskb_may_pull(skb, ETH_HLEN)) l2tp_eth_dev_recv()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c443 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 Dpasemi_mac.c1691 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 Dmpc.c545 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 Dpch_gbe_main.c133 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 Dixgbe_dcb_nl.c344 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 Dixgbe_sriov.c431 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 Dixgbe_main.c1747 * 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 Dif_vlan.h488 * ETH_HLEN otherwise __vlan_get_protocol()
496 vlan_depth = ETH_HLEN; __vlan_get_protocol()
/linux-4.4.14/drivers/staging/gdm72xx/
H A Dgdm_qos.c258 struct iphdr *iph = (struct iphdr *)((char *)ethh + ETH_HLEN); gdm_qos_send_hci_pkt()
/linux-4.4.14/net/ipv4/
H A Dip_tunnel_core.c99 if (unlikely(!pskb_may_pull(skb, ETH_HLEN))) iptunnel_pull_header()
H A Dip_tunnel.c484 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); ip_tunnel_rcv()
/linux-4.4.14/net/irda/irlan/
H A Dirlan_eth.c229 if (skb->len < ETH_HLEN) { irlan_eth_receive()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c1766 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 Ddvb_net.c551 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 Dxilinx_emaclite.c422 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 Dhns_enet.c67 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 Dhns_dsaf_mac.h27 #define MAC_DEFAULT_MTU (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN + ETH_DATA_LEN)
H A Dhns_dsaf_mac.c469 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 Df_eem.c477 || (len < (ETH_HLEN + ETH_FCS_LEN))) { eem_unwrap()
H A Du_ether.c154 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 Drtw_recv.c1621 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 Drtw_xmit.c412 _rtw_pktfile_read(ppktfile, (unsigned char *)&etherhdr, ETH_HLEN); set_qos()
445 _rtw_pktfile_read(&pktfile, (u8 *)&etherhdr, 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 Drtw_xmit.c402 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 Dmyri10ge.c324 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 Dnps_enet.c304 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 Dhw.h351 #define ALX_RAW_MTU(_mtu) (_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
H A Dhw.c961 raw_mtu = hw->mtu + ETH_HLEN; alx_configure_basic()
H A Dmain.c809 int max_frame = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; alx_change_mtu()
/linux-4.4.14/drivers/net/ethernet/marvell/
H A Dsky2.c1160 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 Dskge.c949 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 Dnic_main.c244 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 Dutil.c542 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 Djme.c973 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 Djme.h271 ETH_HLEN + \
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c162 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 Dqeth_l2_main.c900 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 Dqeth_core_main.c2784 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 Dqeth_l3_main.c2879 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 Db44.c1429 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 Dbcmsysport.h37 #define UMAC_MAX_MTU_SIZE (ETH_DATA_LEN + ETH_HLEN + VLAN_HLEN + \
H A Dbnx2.c3257 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 Dos_intfs.c321 piphdr = (struct iphdr *)(pdata + ETH_HLEN); rtw_recv_select_queue23a()
/linux-4.4.14/drivers/staging/rdma/amso1100/
H A Dc2_provider.c735 netdev->hard_header_len = ETH_HLEN; setup()
H A Dc2.c101 netdev->mtu + ETH_HLEN + sizeof(struct c2_rxp_hdr) + c2_set_rxbufsize()
/linux-4.4.14/drivers/isdn/i4l/
H A Disdn_net.c1123 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 Dxpnet.c245 xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN; xpnet_receive()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.c528 lldpmib += ETH_HLEN; i40e_lldp_to_dcb_config()
H A Di40e_fcoe.c322 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 Di40evf_virtchnl.c269 + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; i40evf_configure_queues()
H A Di40evf_main.c627 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 Dselftest.c307 if (memcmp(&received->header, &payload->header, ETH_HLEN) != 0) { efx_loopback_rx_packet()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
H A Dbe.h73 (ETH_HLEN + ETH_FCS_LEN))
H A Dbe_main.c1024 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 Dacenic.c352 #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, &regs->IfMtu); ace_open()
2554 writel(new_mtu + ETH_HLEN + 4, &regs->IfMtu); ace_change_mtu()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_main.c490 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 Dbnx2x_ethtool.c2491 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 Dbnxt_sriov.c404 mtu = bp->dev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; bnxt_hwrm_func_cfg()
H A Dbnxt.c874 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 Dbcmgenet.h31 #define ENET_MAX_MTU_SIZE (ETH_DATA_LEN + ETH_HLEN + VLAN_HLEN + \
/linux-4.4.14/drivers/net/bonding/
H A Dbond_alb.c61 u8 padding[ETH_ZLEN - ETH_HLEN];
945 skb->network_header = skb->mac_header + ETH_HLEN; alb_send_lp_vid()
H A Dbond_3ad.c780 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 Dlibipw_rx.c760 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 Dioc3-eth.c533 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 Dip6_gre.c538 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 Dtx.c1612 !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(&eth, 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 Dnetdev.c1576 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 Dsge.c1119 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 Dfm10k_main.c296 /* 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 Dfm10k_netdev.c636 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); fm10k_xmit_frame()
/linux-4.4.14/drivers/net/ethernet/calxeda/
H A Dxgmac.c691 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 Dxgbe-drv.c265 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 Dos_intfs.c700 piphdr = (struct iphdr *)(pdata+ETH_HLEN); rtw_recv_select_queue()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
H A Dswitchx2.c223 mtu += MLXSW_TXHDR_LEN + ETH_HLEN; mlxsw_sx_port_mtu_set()
H A Dspectrum.c261 mtu += MLXSW_TXHDR_LEN + ETH_HLEN; mlxsw_sp_port_mtu_set()
/linux-4.4.14/drivers/net/ethernet/xscale/
H A Dixp4xx_eth.c269 offset = ETH_HLEN + IPV4_HLEN(data) + UDP_HLEN; ixp_ptp_match()
/linux-4.4.14/drivers/net/hyperv/
H A Dnetvsc.c460 ETH_HLEN; negotiate_nvsp_ver()
H A Dnetvsc_drv.c884 limit = NETVSC_MTU - ETH_HLEN; netvsc_change_mtu()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
H A Dmain.c1301 dev->needed_headroom = ETH_HLEN; init_netdev()
/linux-4.4.14/drivers/net/ethernet/octeon/
H A Docteon_mgmt.c44 #define OCTEON_MGMT_RX_HEADROOM (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_main.c1550 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 Dftgmac100.c487 __pskb_pull_tail(skb, ETH_HLEN); ftgmac100_rx_packet()
H A Dftmac100.c447 __pskb_pull_tail(skb, ETH_HLEN); ftmac100_rx_packet()
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.c107 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 Dvmxnet3_drv.c3412 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 Dqla3xxx.c2056 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 Dmacb.c1856 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 Datl1.c952 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()

Completed in 5604 milliseconds

12