/linux-2.6.39/include/linux/ |
D | if_vlan.h | 21 #define VLAN_HLEN 4 /* The additional bytes (on top of the Ethernet header) macro 232 if (skb_cow_head(skb, VLAN_HLEN) < 0) { in __vlan_put_tag() 236 veth = (struct vlan_ethhdr *)skb_push(skb, VLAN_HLEN); in __vlan_put_tag() 239 memmove(skb->data, skb->data + VLAN_HLEN, 2 * VLAN_ETH_ALEN); in __vlan_put_tag() 240 skb->mac_header -= VLAN_HLEN; in __vlan_put_tag()
|
D | netfilter_bridge.h | 63 return VLAN_HLEN; in nf_bridge_encap_header_len()
|
D | ptp_classify.h | 115 {OP_LDH, 0, 0, ETH_HLEN + VLAN_HLEN }, /* */ \
|
/linux-2.6.39/net/8021q/ |
D | vlan_dev.c | 77 skb->mac_header += VLAN_HLEN; in vlan_check_reorder_header() 153 if (unlikely(!pskb_may_pull(skb, VLAN_HLEN))) in vlan_skb_recv() 217 skb_pull_rcsum(skb, VLAN_HLEN); in vlan_skb_recv() 278 vhdr = (struct vlan_hdr *) skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header() 295 vhdrlen = VLAN_HLEN; in vlan_dev_hard_header() 726 dev->hard_header_len = real_dev->hard_header_len + VLAN_HLEN; in vlan_dev_init()
|
D | vlan.c | 342 vlandev->hard_header_len = dev->hard_header_len + VLAN_HLEN; in vlan_transfer_features()
|
/linux-2.6.39/net/batman-adv/ |
D | gateway_client.c | 458 if (!pskb_may_pull(skb, header_len + VLAN_HLEN)) in gw_is_target() 460 ethhdr = (struct ethhdr *)(skb->data + VLAN_HLEN); in gw_is_target() 461 header_len += VLAN_HLEN; in gw_is_target()
|
D | soft-interface.c | 205 (skb->data + ETH_HLEN + VLAN_HLEN); in softif_batman_recv()
|
/linux-2.6.39/drivers/net/ |
D | ps3_gelic_net.c | 755 if (skb_headroom(skb) < VLAN_HLEN) { in gelic_put_vlan_tag() 758 skb = skb_realloc_headroom(sk_tmp, VLAN_HLEN); in gelic_put_vlan_tag() 763 veth = (struct vlan_ethhdr *)skb_push(skb, VLAN_HLEN); in gelic_put_vlan_tag() 766 memmove(skb->data, skb->data + VLAN_HLEN, 2 * ETH_ALEN); in gelic_put_vlan_tag() 1530 netdev->hard_header_len += VLAN_HLEN; in gelic_net_setup_netdev()
|
D | virtio_net.c | 38 #define MAX_PACKET_LEN (ETH_HLEN + VLAN_HLEN + ETH_DATA_LEN)
|
D | tc35815.c | 354 L1_CACHE_ALIGN(ETH_FRAME_LEN + VLAN_HLEN + NET_IP_ALIGN) 357 L1_CACHE_ALIGN(ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN + NET_IP_ALIGN)
|
/linux-2.6.39/net/bridge/ |
D | br_forward.c | 39 return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0); in packet_length()
|
/linux-2.6.39/net/ipv4/ |
D | inet_lro.c | 356 vlan_hdr_len = VLAN_HLEN; in __lro_proc_skb() 477 vlan_hdr_len = VLAN_HLEN; in __lro_proc_segment()
|
/linux-2.6.39/drivers/scsi/fnic/ |
D | fnic_fcs.c | 148 memmove((u8 *)eh + VLAN_HLEN, eh, ETH_ALEN * 2); in fnic_import_rq_eth_pkt() 149 eh = (struct ethhdr *)skb_pull(skb, VLAN_HLEN); in fnic_import_rq_eth_pkt()
|
/linux-2.6.39/drivers/net/atl1e/ |
D | atl1e_main.c | 383 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu() 576 VLAN_HLEN + ETH_FCS_LEN + 7) >> 3; in atl1e_sw_init() 702 + ETH_HLEN + VLAN_HLEN in atl1e_init_ring_resources() 918 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1e_configure_tx() 1102 VLAN_HLEN + ETH_FCS_LEN); in atl1e_configure()
|
/linux-2.6.39/drivers/net/atl1c/ |
D | atl1c.h | 75 #define AT_RX_BUF_SIZE (ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)
|
D | atl1c_main.c | 481 roundup(mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN, 8) : AT_RX_BUF_SIZE; in atl1c_set_rxbufsize() 494 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1c_change_mtu() 1094 extra_size = ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN; in atl1c_configure_tx() 1516 VLAN_HLEN + ETH_FCS_LEN); in atl1c_configure()
|
/linux-2.6.39/drivers/net/netxen/ |
D | netxen_nic_main.c | 1694 first_desc->total_hdr_length += VLAN_HLEN; in netxen_tso_check() 1695 first_desc->tcp_hdr_offset = VLAN_HLEN; in netxen_tso_check() 1696 first_desc->ip_hdr_offset = VLAN_HLEN; in netxen_tso_check() 1746 hdr_len + VLAN_HLEN); in netxen_tso_check() 1755 copied = copy_len - VLAN_HLEN; in netxen_tso_check()
|
/linux-2.6.39/drivers/net/ixgbe/ |
D | ixgbe.h | 88 #define MAXIMUM_ETHERNET_VLAN_SIZE (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)
|
/linux-2.6.39/drivers/net/sfc/ |
D | net_driver.h | 1063 ((((mtu) + ETH_HLEN + VLAN_HLEN + 4/* FCS */ + 7) & ~7) + 16)
|
/linux-2.6.39/drivers/net/qlcnic/ |
D | qlcnic_main.c | 1912 first_desc->total_hdr_length += VLAN_HLEN; in qlcnic_tso_check() 1913 first_desc->tcp_hdr_offset = VLAN_HLEN; in qlcnic_tso_check() 1914 first_desc->ip_hdr_offset = VLAN_HLEN; in qlcnic_tso_check() 1963 hdr_len + VLAN_HLEN); in qlcnic_tso_check() 1973 copied = copy_len - VLAN_HLEN; in qlcnic_tso_check()
|
D | qlcnic_init.c | 1405 memmove(skb->data + VLAN_HLEN, eth_hdr, ETH_ALEN * 2); in qlcnic_check_rx_tagging() 1406 skb_pull(skb, VLAN_HLEN); in qlcnic_check_rx_tagging()
|
/linux-2.6.39/drivers/net/igbvf/ |
D | netdev.c | 1526 adapter->rx_buffer_len = ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN; in igbvf_sw_init() 2353 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu() 2354 adapter->rx_buffer_len = ETH_FRAME_LEN + VLAN_HLEN + in igbvf_change_mtu()
|
/linux-2.6.39/drivers/net/myri10ge/ |
D | myri10ge.c | 2288 ll_hlen += VLAN_HLEN; in myri10ge_get_frag_header() 2296 VLAN_HLEN, 0)); in myri10ge_get_frag_header() 2473 big_pow2 = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD; in myri10ge_open() 2477 mgp->big_bytes = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD; in myri10ge_open() 2524 cmd.data0 = dev->mtu + ETH_HLEN + VLAN_HLEN; in myri10ge_open()
|
/linux-2.6.39/drivers/net/mlx4/ |
D | en_rx.c | 736 int eff_mtu = dev->mtu + ETH_HLEN + VLAN_HLEN + ETH_LLC_SNAP_SIZE; in mlx4_en_calc_rx_buf()
|
/linux-2.6.39/drivers/net/octeon/ |
D | octeon_mgmt.c | 39 #define OCTEON_MGMT_RX_HEADROOM (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)
|