/linux-6.1.9/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_encap.c | 75 u8 l4_type, u16 l4_hdr) in opa_vnic_make_header() argument 82 h[4] = l4_hdr << OPA_VNIC_L4_HDR_SHFT; in opa_vnic_make_header() 488 u16 len, l4_hdr; in opa_vnic_encap_skb() local 499 l4_hdr = info->vesw.vesw_id; in opa_vnic_encap_skb() 512 OPA_VNIC_L4_ETHR, l4_hdr); in opa_vnic_encap_skb()
|
/linux-6.1.9/include/net/ |
D | vxlan.h | 353 u8 l4_hdr = 0; in vxlan_features_check() local 360 l4_hdr = ip_hdr(skb)->protocol; in vxlan_features_check() 363 l4_hdr = ipv6_hdr(skb)->nexthdr; in vxlan_features_check() 369 if ((l4_hdr == IPPROTO_UDP) && in vxlan_features_check()
|
/linux-6.1.9/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 679 u8 l4_hdr = 0, inner_l4_hdr = 0, inner_l4_hlen; in fm10k_tx_encap_offload() local 688 l4_hdr = ip_hdr(skb)->protocol; in fm10k_tx_encap_offload() 691 l4_hdr = ipv6_hdr(skb)->nexthdr; in fm10k_tx_encap_offload() 697 switch (l4_hdr) { in fm10k_tx_encap_offload() 803 u8 l4_hdr = 0; in fm10k_tx_csum() local 828 l4_hdr = network_hdr.ipv4->protocol; in fm10k_tx_csum() 831 l4_hdr = network_hdr.ipv6->nexthdr; in fm10k_tx_csum() 837 &l4_hdr, &frag_off); in fm10k_tx_csum() 839 l4_hdr = NEXTHDR_FRAGMENT; in fm10k_tx_csum() 845 switch (l4_hdr) { in fm10k_tx_csum() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_protocol_type.h | 239 struct ice_l4_hdr l4_hdr; member
|
D | ice_tc_lib.c | 318 list[i].h_u.l4_hdr.dst_port = hdr->l4_key.dst_port; in ice_tc_fill_tunnel_outer() 319 list[i].m_u.l4_hdr.dst_port = hdr->l4_mask.dst_port; in ice_tc_fill_tunnel_outer() 573 list[i].h_u.l4_hdr.dst_port = l4_key->dst_port; in ice_tc_fill_rules() 574 list[i].m_u.l4_hdr.dst_port = l4_mask->dst_port; in ice_tc_fill_rules() 577 list[i].h_u.l4_hdr.src_port = l4_key->src_port; in ice_tc_fill_rules() 578 list[i].m_u.l4_hdr.src_port = l4_mask->src_port; in ice_tc_fill_rules()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | dp.c | 125 u8 l4_hdr; in nfp_nfd3_tx_csum() local 142 l4_hdr = iph->protocol; in nfp_nfd3_tx_csum() 144 l4_hdr = ipv6h->nexthdr; in nfp_nfd3_tx_csum() 150 switch (l4_hdr) { in nfp_nfd3_tx_csum() 158 nn_dp_warn(dp, "partial checksum but l4 proto=%x!\n", l4_hdr); in nfp_nfd3_tx_csum()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_common.c | 1780 u8 l4_hdr; in nfp_net_features_check() local 1804 l4_hdr = ip_hdr(skb)->protocol; in nfp_net_features_check() 1807 l4_hdr = ipv6_hdr(skb)->nexthdr; in nfp_net_features_check() 1815 (l4_hdr != IPPROTO_UDP && l4_hdr != IPPROTO_GRE) || in nfp_net_features_check() 1816 (l4_hdr == IPPROTO_UDP && in nfp_net_features_check()
|
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/ |
D | enetc.c | 411 char *l4_hdr = hdr + skb_transport_offset(skb); in enetc_tso_hdr_csum() local 415 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_hdr_csum() 419 struct udphdr *udph = (struct udphdr *)(l4_hdr); in enetc_tso_hdr_csum() 436 return csum_partial(l4_hdr, *l4_hdr_len, 0); in enetc_tso_hdr_csum() 443 char *l4_hdr = hdr + skb_transport_offset(skb); in enetc_tso_complete_csum() local 459 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_complete_csum() 463 struct udphdr *udph = (struct udphdr *)(l4_hdr); in enetc_tso_complete_csum()
|
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/ |
D | hinic_tx.c | 52 #define TRANSPORT_OFFSET(l4_hdr, skb) ((u32)((l4_hdr) - (skb)->data)) argument
|
/linux-6.1.9/include/linux/ |
D | skbuff.h | 4991 unsigned char *l4_hdr = skb_transport_header(skb); in lco_csum() local 5001 return csum_partial(l4_hdr, csum_start - l4_hdr, partial); in lco_csum()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 1242 unsigned char *l4_hdr; in hns3_get_l4_protocol() local 1249 l4_hdr = skb_transport_header(skb); in hns3_get_l4_protocol() 1254 if (l4_hdr != exthdr) in hns3_get_l4_protocol() 1273 l4_hdr = skb_inner_transport_header(skb); in hns3_get_l4_protocol() 1278 if (l4_hdr != exthdr) in hns3_get_l4_protocol()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 1283 u8 l4_hdr = 0; in cxgb_encap_offload_supported() local 1294 l4_hdr = ip_hdr(skb)->protocol; in cxgb_encap_offload_supported() 1297 l4_hdr = ipv6_hdr(skb)->nexthdr; in cxgb_encap_offload_supported() 1303 switch (l4_hdr) { in cxgb_encap_offload_supported()
|
/linux-6.1.9/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 5070 u8 l4_hdr = 0; in be_features_check() local 5106 l4_hdr = ip_hdr(skb)->protocol; in be_features_check() 5109 l4_hdr = ipv6_hdr(skb)->nexthdr; in be_features_check() 5115 if (l4_hdr != IPPROTO_UDP || in be_features_check()
|