Home
last modified time | relevance | path

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

/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_encap.c75 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/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/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c349 list[i].h_u.l4_hdr.dst_port = hdr->l4_key.dst_port; in ice_tc_fill_tunnel_outer()
350 list[i].m_u.l4_hdr.dst_port = hdr->l4_mask.dst_port; in ice_tc_fill_tunnel_outer()
622 list[i].h_u.l4_hdr.dst_port = l4_key->dst_port; in ice_tc_fill_rules()
623 list[i].m_u.l4_hdr.dst_port = l4_mask->dst_port; in ice_tc_fill_rules()
626 list[i].h_u.l4_hdr.src_port = l4_key->src_port; in ice_tc_fill_rules()
627 list[i].m_u.l4_hdr.src_port = l4_mask->src_port; in ice_tc_fill_rules()
H A Dice_protocol_type.h433 struct ice_l4_hdr l4_hdr; member
/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.c520 char *l4_hdr = hdr + skb_transport_offset(skb); in enetc_tso_hdr_csum() local
524 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_hdr_csum()
528 struct udphdr *udph = (struct udphdr *)(l4_hdr); in enetc_tso_hdr_csum()
545 return csum_partial(l4_hdr, *l4_hdr_len, 0); in enetc_tso_hdr_csum()
552 char *l4_hdr = hdr + skb_transport_offset(skb); in enetc_tso_complete_csum() local
568 struct tcphdr *tcph = (struct tcphdr *)(l4_hdr); in enetc_tso_complete_csum()
572 struct udphdr *udph = (struct udphdr *)(l4_hdr); in enetc_tso_complete_csum()
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c1243 unsigned char *l4_hdr; in hns3_get_l4_protocol() local
1250 l4_hdr = skb_transport_header(skb); in hns3_get_l4_protocol()
1255 if (l4_hdr != exthdr) in hns3_get_l4_protocol()
1274 l4_hdr = skb_inner_transport_header(skb); in hns3_get_l4_protocol()
1279 if (l4_hdr != exthdr) in hns3_get_l4_protocol()
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c5066 u8 l4_hdr = 0; in be_features_check() local
5102 l4_hdr = ip_hdr(skb)->protocol; in be_features_check()
5105 l4_hdr = ipv6_hdr(skb)->nexthdr; in be_features_check()
5111 if (l4_hdr != IPPROTO_UDP || in be_features_check()