Home
last modified time | relevance | path

Searched refs:l4_proto (Results 1 – 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Den_accel.h59 u8 l4_proto; in mlx5e_tx_tunnel_accel() local
64 l4_proto = ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel()
67 l4_proto = ipv6_find_hdr(skb, &offset, -1, NULL, NULL); in mlx5e_tx_tunnel_accel()
73 if (l4_proto != IPPROTO_UDP || in mlx5e_tx_tunnel_accel()
77 swp_spec.l4_proto = l4_proto; in mlx5e_tx_tunnel_accel()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_tx.c202 u8 *l4_proto) in get_inner_l3_l4_type() argument
210 *l4_proto = ip->v4->protocol; in get_inner_l3_l4_type()
214 *l4_proto = ip->v6->nexthdr; in get_inner_l3_l4_type()
219 ipv6_skip_exthdr(skb, start, l4_proto, &frag_off); in get_inner_l3_l4_type()
223 *l4_proto = 0; in get_inner_l3_l4_type()
228 enum hinic_offload_type offload_type, u8 l4_proto, in get_inner_l4_info() argument
236 switch (l4_proto) { in get_inner_l4_info()
280 u8 l4_proto; in offload_tso() local
335 &l4_proto); in offload_tso()
340 if (l4_proto == IPPROTO_TCP) in offload_tso()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c168 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip.v6.proto; in ice_get_ethtool_fdir_entry()
179 fsp->m_u.usr_ip6_spec.l4_proto = rule->mask.v6.proto; in ice_get_ethtool_fdir_entry()
637 enum ice_flow_seg_hdr l4_proto) in ice_set_init_fdir_seg() argument
654 if (l4_proto == ICE_FLOW_SEG_HDR_TCP) { in ice_set_init_fdir_seg()
657 } else if (l4_proto == ICE_FLOW_SEG_HDR_UDP) { in ice_set_init_fdir_seg()
664 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg()
771 enum ice_flow_seg_hdr l4_proto, bool *perfect_fltr) in ice_set_fdir_ip4_seg() argument
784 if (l4_proto == ICE_FLOW_SEG_HDR_TCP) { in ice_set_fdir_ip4_seg()
787 } else if (l4_proto == ICE_FLOW_SEG_HDR_UDP) { in ice_set_fdir_ip4_seg()
790 } else if (l4_proto == ICE_FLOW_SEG_HDR_SCTP) { in ice_set_fdir_ip4_seg()
[all …]
Dice_arfs.c359 ice_arfs_is_perfect_flow_set(struct ice_hw *hw, __be16 l3_proto, u8 l4_proto) in ice_arfs_is_perfect_flow_set() argument
367 if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_UDP) in ice_arfs_is_perfect_flow_set()
369 else if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_TCP) in ice_arfs_is_perfect_flow_set()
371 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_UDP) in ice_arfs_is_perfect_flow_set()
373 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_TCP) in ice_arfs_is_perfect_flow_set()
Dice_txrx.c1897 u8 l4_proto = 0; in ice_tx_csum() local
1925 l4_proto = ip.v4->protocol; in ice_tx_csum()
1931 l4_proto = ip.v6->nexthdr; in ice_tx_csum()
1933 &l4_proto, &frag_off); in ice_tx_csum()
1939 switch (l4_proto) { in ice_tx_csum()
1988 l4_proto = 0; in ice_tx_csum()
2000 l4_proto = ip.v4->protocol; in ice_tx_csum()
2012 l4_proto = ip.v6->nexthdr; in ice_tx_csum()
2014 ipv6_skip_exthdr(skb, exthdr - skb->data, &l4_proto, in ice_tx_csum()
2025 switch (l4_proto) { in ice_tx_csum()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c779 uint8_t l4_proto; in process_icmpv6() local
782 pkt_parse_ipv6(pkt, &_ipv6, &l4_proto, &is_fragment); in process_icmpv6()
803 return classify_icmp(pkt->skb, l4_proto, &tuple, sizeof(tuple.ipv6), in process_icmpv6()
888 uint8_t l4_proto; in process_ipv6() local
892 pkt_parse_ipv6(pkt, &_ipv6, &l4_proto, &is_fragment); in process_ipv6()
908 switch (l4_proto) { in process_ipv6()
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/
Dena_eth_com.h21 enum ena_eth_io_l4_proto_index l4_proto; member
40 enum ena_eth_io_l4_proto_index l4_proto; member
Dena_eth_com.c343 ena_rx_ctx->l4_proto = in ena_com_rx_set_flags()
361 ena_rx_ctx->l3_proto, ena_rx_ctx->l4_proto, in ena_com_rx_set_flags()
456 desc->meta_ctrl |= (ena_tx_ctx->l4_proto << in ena_com_prepare_tx()
Dena_netdev.c1464 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_rx_checksum()
1465 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) { in ena_rx_checksum()
1502 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_set_rx_hash()
1503 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) in ena_set_rx_hash()
1597 ena_rx_ctx.l4_proto, ena_rx_ctx.hash); in ena_clean_rx_irq()
2798 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_TCP; in ena_tx_csum()
2800 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_UDP; in ena_tx_csum()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c1976 u8 l4_proto = 0; in iavf_tx_enable_csum() local
1995 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum()
2000 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum()
2003 &l4_proto, &frag_off); in iavf_tx_enable_csum()
2007 switch (l4_proto) { in iavf_tx_enable_csum()
2051 l4_proto = 0; in iavf_tx_enable_csum()
2063 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum()
2074 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum()
2077 &l4_proto, &frag_off); in iavf_tx_enable_csum()
2084 switch (l4_proto) { in iavf_tx_enable_csum()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h363 u8 l4_proto; member
386 if (swp_spec->l4_proto) { in mlx5e_set_eseg_swp()
388 if (swp_spec->l4_proto == IPPROTO_UDP) in mlx5e_set_eseg_swp()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/crypto/
Dfw.h41 u8 l4_proto; member
Dtls.c219 front->l4_proto = IPPROTO_TCP; in nfp_net_tls_set_l4()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c212 u8 l4_proto; in qede_set_params_for_ipv6_ext() local
225 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_set_params_for_ipv6_ext()
227 l4_proto = ip_hdr(skb)->protocol; in qede_set_params_for_ipv6_ext()
229 if (l4_proto == IPPROTO_UDP) in qede_set_params_for_ipv6_ext()
1781 u8 l4_proto = 0; in qede_features_check() local
1785 l4_proto = ip_hdr(skb)->protocol; in qede_features_check()
1788 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_features_check()
1798 if (l4_proto == IPPROTO_UDP) { in qede_features_check()
1812 } else if (l4_proto == IPPROTO_IPIP) { in qede_features_check()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c2697 int l4_proto; in i40e_atr() local
2725 l4_proto = hdr.ipv4->protocol; in i40e_atr()
2732 l4_proto = in i40e_atr()
2738 if (l4_proto != IPPROTO_TCP) in i40e_atr()
3080 u8 l4_proto = 0; in i40e_tx_enable_csum() local
3099 l4_proto = ip.v4->protocol; in i40e_tx_enable_csum()
3106 l4_proto = ip.v6->nexthdr; in i40e_tx_enable_csum()
3108 &l4_proto, &frag_off); in i40e_tx_enable_csum()
3114 switch (l4_proto) { in i40e_tx_enable_csum()
3158 l4_proto = 0; in i40e_tx_enable_csum()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c261 if (l3_mask->l4_proto) { in parse_ip6()
262 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->l4_proto); in parse_ip6()
263 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->l4_proto); in parse_ip6()
566 if (l3_mask->l4_proto) in validate_ip6()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dethtool_common.c776 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in efx_ethtool_get_class_rule()
777 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule()
1075 if (uip6_mask->l4_proto) { in efx_ethtool_set_class_rule()
1076 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in efx_ethtool_set_class_rule()
1079 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dethtool.c914 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in ef4_ethtool_get_class_rule()
915 uip6_entry->l4_proto = spec.ip_proto; in ef4_ethtool_get_class_rule()
1168 if (uip6_mask->l4_proto) { in ef4_ethtool_set_class_rule()
1169 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in ef4_ethtool_set_class_rule()
1172 spec.ip_proto = uip6_entry->l4_proto; in ef4_ethtool_set_class_rule()
/kernel/linux/linux-5.10/net/openvswitch/
Dactions.c379 static void update_ipv6_checksum(struct sk_buff *skb, u8 l4_proto, in update_ipv6_checksum() argument
384 if (l4_proto == NEXTHDR_TCP) { in update_ipv6_checksum()
388 } else if (l4_proto == NEXTHDR_UDP) { in update_ipv6_checksum()
399 } else if (l4_proto == NEXTHDR_ICMP) { in update_ipv6_checksum()
415 static void set_ipv6_addr(struct sk_buff *skb, u8 l4_proto, in set_ipv6_addr() argument
420 update_ipv6_checksum(skb, l4_proto, addr, new_addr); in set_ipv6_addr()
/kernel/linux/linux-5.10/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c283 u8 l4_proto = 0; in vmxnet3_features_check() local
289 l4_proto = ip_hdr(skb)->protocol; in vmxnet3_features_check()
292 l4_proto = ipv6_hdr(skb)->nexthdr; in vmxnet3_features_check()
298 switch (l4_proto) { in vmxnet3_features_check()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c406 void *key, void *mask, u8 l4_proto, u64 *fields) in dpaa2_eth_prep_l4_rule() argument
448 *(u8 *)(key + off) = l4_proto; in dpaa2_eth_prep_l4_rule()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c1425 u8 l4_proto; in dpaa_enable_tx_csum() local
1456 l4_proto = iph->protocol; in dpaa_enable_tx_csum()
1462 l4_proto = ipv6h->nexthdr; in dpaa_enable_tx_csum()
1475 switch (l4_proto) { in dpaa_enable_tx_csum()
1486 l4_proto); in dpaa_enable_tx_csum()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dmvneta.c1745 int ip_hdr_len, int l4_proto) in mvneta_txq_desc_csum() argument
1761 if (l4_proto == IPPROTO_TCP) in mvneta_txq_desc_csum()
1763 else if (l4_proto == IPPROTO_UDP) in mvneta_txq_desc_csum()
1915 u8 l4_proto; in mvneta_skb_tx_csum() local
1922 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum()
1929 l4_proto = ip6h->nexthdr; in mvneta_skb_tx_csum()
1934 l3_proto, ip_hdr_len, l4_proto); in mvneta_skb_tx_csum()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dethtool.h287 __u8 l4_proto; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dethtool.h342 __u8 l4_proto; member

12