Home
last modified time | relevance | path

Searched refs:VLAN_HLEN (Results 1 – 25 of 41) sorted by relevance

12

/linux-2.6.39/include/linux/
Dif_vlan.h21 #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()
Dnetfilter_bridge.h63 return VLAN_HLEN; in nf_bridge_encap_header_len()
Dptp_classify.h115 {OP_LDH, 0, 0, ETH_HLEN + VLAN_HLEN }, /* */ \
/linux-2.6.39/net/8021q/
Dvlan_dev.c77 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()
Dvlan.c342 vlandev->hard_header_len = dev->hard_header_len + VLAN_HLEN; in vlan_transfer_features()
/linux-2.6.39/net/batman-adv/
Dgateway_client.c458 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()
Dsoft-interface.c205 (skb->data + ETH_HLEN + VLAN_HLEN); in softif_batman_recv()
/linux-2.6.39/drivers/net/
Dps3_gelic_net.c755 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()
Dvirtio_net.c38 #define MAX_PACKET_LEN (ETH_HLEN + VLAN_HLEN + ETH_DATA_LEN)
Dtc35815.c354 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/
Dbr_forward.c39 return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0); in packet_length()
/linux-2.6.39/net/ipv4/
Dinet_lro.c356 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/
Dfnic_fcs.c148 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/
Datl1e_main.c383 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/
Datl1c.h75 #define AT_RX_BUF_SIZE (ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)
Datl1c_main.c481 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/
Dnetxen_nic_main.c1694 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/
Dixgbe.h88 #define MAXIMUM_ETHERNET_VLAN_SIZE (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)
/linux-2.6.39/drivers/net/sfc/
Dnet_driver.h1063 ((((mtu) + ETH_HLEN + VLAN_HLEN + 4/* FCS */ + 7) & ~7) + 16)
/linux-2.6.39/drivers/net/qlcnic/
Dqlcnic_main.c1912 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()
Dqlcnic_init.c1405 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/
Dnetdev.c1526 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/
Dmyri10ge.c2288 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/
Den_rx.c736 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/
Docteon_mgmt.c39 #define OCTEON_MGMT_RX_HEADROOM (ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN)

12