Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c101 int olen, l2_len; in __encap_ipv4() local
156 l2_len = 0; in __encap_ipv4()
162 l2_len = sizeof(mpls_label); in __encap_ipv4()
166 l2_len = ETH_HLEN; in __encap_ipv4()
169 l2_len += sizeof(struct vxlanhdr); in __encap_ipv4()
174 flags |= BPF_F_ADJ_ROOM_ENCAP_L2(l2_len); in __encap_ipv4()
191 l2_len); in __encap_ipv4()
223 olen += l2_len; in __encap_ipv4()
269 int olen, l2_len; in __encap_ipv6() local
287 l2_len = 0; in __encap_ipv6()
[all …]
/linux-6.12.1/net/sched/
Dsch_frag.c16 unsigned int l2_len; member
27 if (skb_cow_head(skb, data->l2_len) < 0) { in sch_frag_xmit()
42 skb_push(skb, data->l2_len); in sch_frag_xmit()
43 memcpy(skb->data, &data->l2_data, data->l2_len); in sch_frag_xmit()
44 skb_postpush_rcsum(skb, skb->data, data->l2_len); in sch_frag_xmit()
66 data->l2_len = hlen; in sch_frag_prepare_frag()
/linux-6.12.1/net/openvswitch/
Dactions.c60 unsigned int l2_len; member
800 if (skb_cow_head(skb, data->l2_len) < 0) { in ovs_vport_output()
814 skb_push(skb, data->l2_len); in ovs_vport_output()
815 memcpy(skb->data, &data->l2_data, data->l2_len); in ovs_vport_output()
816 skb_postpush_rcsum(skb, skb->data, data->l2_len); in ovs_vport_output()
861 data->l2_len = hlen; in prepare_frag()
/linux-6.12.1/drivers/net/ethernet/intel/idpf/
Didpf_singleq_txrx.c20 u32 l4_len, l3_len, l2_len; in idpf_tx_singleq_csum() local
42 l2_len = ip.hdr - skb->data; in idpf_tx_singleq_csum()
43 offset = FIELD_PREP(0x3F << IDPF_TX_DESC_LEN_MACLEN_S, l2_len / 2); in idpf_tx_singleq_csum()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.h272 __u8 l2_len; member
Dhns3_enet.c1323 u32 l2_len, l3_len, l4_len; in hns3_set_outer_l2l3l4() local
1332 l2_len = l3.hdr - skb->data; in hns3_set_outer_l2l3l4()
1333 hns3_set_field(*ol_type_vlan_len_msec, HNS3_TXD_L2LEN_S, l2_len >> 1); in hns3_set_outer_l2l3l4()
1441 u32 l2_len, l3_len; in hns3_set_l2l3l4() local
1474 l2_len = l3.hdr - l2_hdr; in hns3_set_l2l3l4()
1475 hns3_set_field(*type_cs_vlan_tso, HNS3_TXD_L2LEN_S, l2_len >> 1); in hns3_set_l2l3l4()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_txrx.c1756 u32 l4_len = 0, l3_len = 0, l2_len = 0; in ice_tx_csum() local
1786 l2_len = ip.hdr - skb->data; in ice_tx_csum()
1787 offset = (l2_len / 2) << ICE_TX_DESC_LEN_MACLEN_S; in ice_tx_csum()
/linux-6.12.1/drivers/net/ethernet/ibm/
Dibmvnic.h295 u8 l2_len; member
Dibmvnic.c2228 hdr_desc->hdr.l2_len = (u8)hdr_len[0]; in create_hdr_descs()