Home
last modified time | relevance | path

Searched refs:l4_hdr (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c678 u8 l4_hdr = 0, inner_l4_hdr = 0, inner_l4_hlen; in fm10k_tx_encap_offload() local
687 l4_hdr = ip_hdr(skb)->protocol; in fm10k_tx_encap_offload()
690 l4_hdr = ipv6_hdr(skb)->nexthdr; in fm10k_tx_encap_offload()
696 switch (l4_hdr) { in fm10k_tx_encap_offload()
802 u8 l4_hdr = 0; in fm10k_tx_csum() local
827 l4_hdr = network_hdr.ipv4->protocol; in fm10k_tx_csum()
830 l4_hdr = network_hdr.ipv6->nexthdr; in fm10k_tx_csum()
836 &l4_hdr, &frag_off); in fm10k_tx_csum()
838 l4_hdr = NEXTHDR_FRAGMENT; in fm10k_tx_csum()
844 switch (l4_hdr) { in fm10k_tx_csum()
[all …]
/linux/include/net/
H A Dvxlan.h367 u8 l4_hdr = 0; in vxlan_features_check() local
374 l4_hdr = ip_hdr(skb)->protocol; in vxlan_features_check()
377 l4_hdr = ipv6_hdr(skb)->nexthdr; in vxlan_features_check()
383 if ((l4_hdr == IPPROTO_UDP) && in vxlan_features_check()
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_lib.c1202 unsigned char *exthdr, *l4_hdr; in wx_encode_tx_desc_ptype() local
1214 l4_hdr = skb_transport_header(skb); in wx_encode_tx_desc_ptype()
1217 if (l4_hdr != exthdr) in wx_encode_tx_desc_ptype()
1262 l4_hdr = skb_inner_transport_header(skb); in wx_encode_tx_desc_ptype()
1265 if (l4_hdr != exthdr) in wx_encode_tx_desc_ptype()
1279 l4_hdr = skb_transport_header(skb); in wx_encode_tx_desc_ptype()
1282 if (l4_hdr != exthdr) in wx_encode_tx_desc_ptype()
1373 unsigned char *exthdr, *l4_hdr; in wx_tso() local
1382 l4_hdr = skb_transport_header(skb); in wx_tso()
1385 if (l4_hdr != exthdr) in wx_tso()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c346 list[i].h_u.l4_hdr.dst_port = hdr->l4_key.dst_port; in ice_tc_fill_tunnel_outer()
347 list[i].m_u.l4_hdr.dst_port = hdr->l4_mask.dst_port; in ice_tc_fill_tunnel_outer()
619 list[i].h_u.l4_hdr.dst_port = l4_key->dst_port; in ice_tc_fill_rules()
620 list[i].m_u.l4_hdr.dst_port = l4_mask->dst_port; in ice_tc_fill_rules()
623 list[i].h_u.l4_hdr.src_port = l4_key->src_port; in ice_tc_fill_rules()
624 list[i].m_u.l4_hdr.src_port = l4_mask->src_port; in ice_tc_fill_rules()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_common.c2106 u8 l4_hdr; in nfp_net_features_check() local
2136 l4_hdr = ip_hdr(skb)->protocol; in nfp_net_features_check()
2139 l4_hdr = ipv6_hdr(skb)->nexthdr; in nfp_net_features_check()
2147 (l4_hdr != IPPROTO_UDP && l4_hdr != IPPROTO_GRE) || in nfp_net_features_check()
2148 (l4_hdr == IPPROTO_UDP && in nfp_net_features_check()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_tx.c52 #define TRANSPORT_OFFSET(l4_hdr, skb) ((u32)((l4_hdr) - (skb)->data)) argument
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.c595 char *l4_hdr = hdr + skb_transport_offset(skb); in enetc_tso_hdr_csum() local
599 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_hdr_csum()
603 struct udphdr *udph = (struct udphdr *)(l4_hdr); in enetc_tso_hdr_csum()
620 return csum_partial(l4_hdr, *l4_hdr_len, 0); in enetc_tso_hdr_csum()
627 char *l4_hdr = hdr + skb_transport_offset(skb); in enetc_tso_complete_csum() local
643 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_complete_csum()
647 struct udphdr *udph = (struct udphdr *)(l4_hdr); in enetc_tso_complete_csum()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.c469 unsigned char l4_hdr; in fbnic_features_check_encap_gso() local
506 l4_hdr = ip6_hdr->nexthdr; in fbnic_features_check_encap_gso()
508 start = ipv6_skip_exthdr(skb, start, &l4_hdr, &frag_off); in fbnic_features_check_encap_gso()
509 if (frag_off || l4_hdr != IPPROTO_IPV6 || in fbnic_features_check_encap_gso()
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c1262 unsigned char *l4_hdr; in hns3_get_l4_protocol() local
1269 l4_hdr = skb_transport_header(skb); in hns3_get_l4_protocol()
1274 if (l4_hdr != exthdr) in hns3_get_l4_protocol()
1293 l4_hdr = skb_inner_transport_header(skb); in hns3_get_l4_protocol()
1298 if (l4_hdr != exthdr) in hns3_get_l4_protocol()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c1269 u8 l4_hdr = 0; in cxgb_encap_offload_supported() local
1280 l4_hdr = ip_hdr(skb)->protocol; in cxgb_encap_offload_supported()
1283 l4_hdr = ipv6_hdr(skb)->nexthdr; in cxgb_encap_offload_supported()
1289 switch (l4_hdr) { in cxgb_encap_offload_supported()
/linux/include/linux/
H A Dskbuff.h5380 unsigned char *l4_hdr = skb_transport_header(skb); in lco_csum() local
5390 return csum_partial(l4_hdr, csum_start - l4_hdr, partial); in lco_csum()
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c5065 u8 l4_hdr = 0; in be_features_check() local
5101 l4_hdr = ip_hdr(skb)->protocol; in be_features_check()
5104 l4_hdr = ipv6_hdr(skb)->nexthdr; in be_features_check()
5110 if (l4_hdr != IPPROTO_UDP || in be_features_check()