Home
last modified time | relevance | path

Searched refs:l2_len (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
A Dtest_tc_tunnel.c94 int olen, l2_len; in __encap_ipv4() local
149 l2_len = 0; in __encap_ipv4()
155 l2_len = sizeof(mpls_label); in __encap_ipv4()
159 l2_len = ETH_HLEN; in __encap_ipv4()
184 l2_len); in __encap_ipv4()
216 olen += l2_len; in __encap_ipv4()
262 int olen, l2_len; in __encap_ipv6() local
280 l2_len = 0; in __encap_ipv6()
286 l2_len = sizeof(mpls_label); in __encap_ipv6()
290 l2_len = ETH_HLEN; in __encap_ipv6()
[all …]
/linux/net/sched/
A Dsch_frag.c15 unsigned int l2_len; member
26 if (skb_cow_head(skb, data->l2_len) < 0) { in sch_frag_xmit()
41 skb_push(skb, data->l2_len); in sch_frag_xmit()
42 memcpy(skb->data, &data->l2_data, data->l2_len); in sch_frag_xmit()
43 skb_postpush_rcsum(skb, skb->data, data->l2_len); in sch_frag_xmit()
65 data->l2_len = hlen; in sch_frag_prepare_frag()
/linux/net/openvswitch/
A Dactions.c53 unsigned int l2_len; member
746 if (skb_cow_head(skb, data->l2_len) < 0) { in ovs_vport_output()
760 skb_push(skb, data->l2_len); in ovs_vport_output()
761 memcpy(skb->data, &data->l2_data, data->l2_len); in ovs_vport_output()
762 skb_postpush_rcsum(skb, skb->data, data->l2_len); in ovs_vport_output()
807 data->l2_len = hlen; in prepare_frag()
/linux/drivers/net/ethernet/hisilicon/hns3/
A Dhns3_enet.h263 __u8 l2_len; member
A Dhns3_enet.c1318 u32 l2_len, l3_len, l4_len; in hns3_set_outer_l2l3l4() local
1327 l2_len = l3.hdr - skb->data; in hns3_set_outer_l2l3l4()
1328 hns3_set_field(*ol_type_vlan_len_msec, HNS3_TXD_L2LEN_S, l2_len >> 1); in hns3_set_outer_l2l3l4()
1370 u32 l2_len, l3_len; in hns3_set_l2l3l4() local
1415 l2_len = l3.hdr - l2_hdr; in hns3_set_l2l3l4()
1416 hns3_set_field(*type_cs_vlan_tso, HNS3_TXD_L2LEN_S, l2_len >> 1); in hns3_set_l2l3l4()
/linux/drivers/net/ethernet/intel/ice/
A Dice_txrx.c1720 u32 l4_len = 0, l3_len = 0, l2_len = 0; in ice_tx_csum() local
1743 l2_len = ip.hdr - skb->data; in ice_tx_csum()
1744 offset = (l2_len / 2) << ICE_TX_DESC_LEN_MACLEN_S; in ice_tx_csum()
/linux/drivers/net/ethernet/ibm/
A Dibmvnic.h261 u8 l2_len; member
A Dibmvnic.c1738 hdr_desc.hdr.l2_len = (u8)hdr_len[0]; in create_hdr_descs()

Completed in 40 milliseconds