Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c90 int olen, l2_len; in set_ipv4_csum()
144 l2_len = 0; in __encap_ipv4()
150 l2_len = sizeof(mpls_label); in __encap_ipv4()
154 l2_len = ETH_HLEN; in __encap_ipv4()
157 l2_len += sizeof(struct vxlanhdr); in __encap_ipv4()
162 flags |= BPF_F_ADJ_ROOM_ENCAP_L2(l2_len); in __encap_ipv4()
179 l2_len); in __encap_ipv4()
211 olen += l2_len; in __encap_ipv4()
257 int olen, l2_len; in encap_ipv4()
275 l2_len in __encap_ipv6()
101 int olen, l2_len; __encap_ipv4() local
269 int olen, l2_len; __encap_ipv6() local
[all...]
/linux/net/sched/
H A Dsch_frag.c16 unsigned int l2_len; member
31 if (skb_cow_head(skb, data->l2_len) < 0) { in sch_frag_xmit()
46 skb_push(skb, data->l2_len); in sch_frag_xmit()
47 memcpy(skb->data, &data->l2_data, data->l2_len); in sch_frag_xmit()
48 skb_postpush_rcsum(skb, skb->data, data->l2_len); in sch_frag_xmit()
70 data->l2_len = hlen; in sch_frag_prepare_frag()
/linux/net/openvswitch/
H A Ddatapath.h189 unsigned int l2_len; member
H A Dactions.c696 if (skb_cow_head(skb, data->l2_len) < 0) { in ovs_vport_output()
710 skb_push(skb, data->l2_len); in ovs_vport_output()
711 memcpy(skb->data, &data->l2_data, data->l2_len); in ovs_vport_output()
712 skb_postpush_rcsum(skb, skb->data, data->l2_len); in ovs_vport_output()
757 data->l2_len = hlen; in prepare_frag()
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.h272 __u8 l2_len; member
H A Dhns3_enet.c1334 u32 l2_len, l3_len, l4_len; in hns3_set_outer_l2l3l4() local
1343 l2_len = l3.hdr - skb->data; in hns3_set_outer_l2l3l4()
1344 hns3_set_field(*ol_type_vlan_len_msec, HNS3_TXD_L2LEN_S, l2_len >> 1); in hns3_set_outer_l2l3l4()
1452 u32 l2_len, l3_len; in hns3_set_l2l3l4() local
1485 l2_len = l3.hdr - l2_hdr; in hns3_set_l2l3l4()
1486 hns3_set_field(*type_cs_vlan_tso, HNS3_TXD_L2LEN_S, l2_len >> 1); in hns3_set_l2l3l4()