/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
A D | en_accel.h | 59 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()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_tx.c | 204 u8 *l4_proto) in get_inner_l3_l4_type() argument 225 *l4_proto = 0; in get_inner_l3_l4_type() 238 switch (l4_proto) { in get_inner_l4_info() 282 u8 l4_proto; in offload_tso() local 337 &l4_proto); in offload_tso() 342 if (l4_proto == IPPROTO_TCP) in offload_tso() 363 u8 l4_proto; in offload_csum() local 384 l4_proto = ip.v6->nexthdr; in offload_csum() 391 l4_proto = IPPROTO_RAW; in offload_csum() 397 switch (l4_proto) { in offload_csum() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_ethtool_fdir.c | 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() 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() 928 if (l4_proto == ICE_FLOW_SEG_HDR_TCP) { in ice_set_fdir_ip6_seg() 931 } else if (l4_proto == ICE_FLOW_SEG_HDR_UDP) { in ice_set_fdir_ip6_seg() 1011 if (usr_ip6_spec->l4_proto) in ice_set_fdir_ip6_usr_seg() [all …]
|
A D | ice_arfs.c | 359 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()
|
A D | ice_txrx.c | 1734 u8 l4_proto = 0; in ice_tx_csum() local 1762 l4_proto = ip.v4->protocol; in ice_tx_csum() 1768 l4_proto = ip.v6->nexthdr; in ice_tx_csum() 1770 &l4_proto, &frag_off); in ice_tx_csum() 1776 switch (l4_proto) { in ice_tx_csum() 1825 l4_proto = 0; in ice_tx_csum() 1837 l4_proto = ip.v4->protocol; in ice_tx_csum() 1849 l4_proto = ip.v6->nexthdr; in ice_tx_csum() 1851 ipv6_skip_exthdr(skb, exthdr - skb->data, &l4_proto, in ice_tx_csum() 1862 switch (l4_proto) { in ice_tx_csum()
|
A D | ice_tc_lib.c | 215 u16 *l4_proto) in ice_tc_fill_rules() argument 496 u16 l4_proto = 0; in ice_add_tc_flower_adv_fltr() local 526 i = ice_tc_fill_rules(hw, flags, tc_fltr, list, &rule_info, &l4_proto); in ice_add_tc_flower_adv_fltr()
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_cls_redirect.c | 786 uint8_t l4_proto; in process_icmpv6() local 789 pkt_parse_ipv6(pkt, &_ipv6, &l4_proto, &is_fragment); in process_icmpv6() 810 return classify_icmp(pkt->skb, l4_proto, &tuple, sizeof(tuple.ipv6), in process_icmpv6() 895 uint8_t l4_proto; in process_ipv6() local 899 pkt_parse_ipv6(pkt, &_ipv6, &l4_proto, &is_fragment); in process_ipv6() 915 switch (l4_proto) { in process_ipv6()
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_txrx.c | 1968 u8 l4_proto = 0; in iavf_tx_enable_csum() local 1987 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 1992 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 1995 &l4_proto, &frag_off); in iavf_tx_enable_csum() 1999 switch (l4_proto) { in iavf_tx_enable_csum() 2043 l4_proto = 0; in iavf_tx_enable_csum() 2055 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 2066 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 2069 &l4_proto, &frag_off); in iavf_tx_enable_csum() 2076 switch (l4_proto) { in iavf_tx_enable_csum()
|
A D | iavf_ethtool.c | 1156 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry() 1163 fsp->m_u.usr_ip6_spec.l4_proto = rule->ip_mask.proto; in iavf_get_ethtool_fdir_entry() 1342 fltr->ip_data.proto = fsp->h_u.usr_ip6_spec.l4_proto; in iavf_add_fdir_fltr_info() 1349 fltr->ip_mask.proto = fsp->m_u.usr_ip6_spec.l4_proto; in iavf_add_fdir_fltr_info()
|
/linux/drivers/net/ethernet/amazon/ena/ |
A D | ena_eth_com.h | 21 enum ena_eth_io_l4_proto_index l4_proto; member 40 enum ena_eth_io_l4_proto_index l4_proto; member
|
A D | ena_eth_com.c | 356 ena_rx_ctx->l4_proto = in ena_com_rx_set_flags() 375 ena_rx_ctx->l3_proto, ena_rx_ctx->l4_proto, in ena_com_rx_set_flags() 479 desc->meta_ctrl |= (ena_tx_ctx->l4_proto << in ena_com_prepare_tx()
|
A D | ena_netdev.c | 1569 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_rx_checksum() 1570 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) { in ena_rx_checksum() 1604 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_set_rx_hash() 1605 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) in ena_set_rx_hash() 1698 ena_rx_ctx.l4_proto, ena_rx_ctx.hash); in ena_clean_rx_irq() 2898 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_TCP; in ena_tx_csum() 2900 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_UDP; in ena_tx_csum()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | txrx.h | 381 u8 l4_proto; member 404 if (swp_spec->l4_proto) { in mlx5e_set_eseg_swp() 406 if (swp_spec->l4_proto == IPPROTO_UDP) in mlx5e_set_eseg_swp()
|
/linux/drivers/net/ethernet/qlogic/qede/ |
A D | qede_fp.c | 212 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() 1762 u8 l4_proto = 0; in qede_features_check() local 1766 l4_proto = ip_hdr(skb)->protocol; in qede_features_check() 1769 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_features_check() 1779 if (l4_proto == IPPROTO_UDP) { in qede_features_check() 1793 } else if (l4_proto == IPPROTO_IPIP) { in qede_features_check()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_txrx.c | 2807 int l4_proto; in i40e_atr() local 2842 l4_proto = in i40e_atr() 2848 if (l4_proto != IPPROTO_TCP) in i40e_atr() 3190 u8 l4_proto = 0; in i40e_tx_enable_csum() local 3216 l4_proto = ip.v6->nexthdr; in i40e_tx_enable_csum() 3224 switch (l4_proto) { in i40e_tx_enable_csum() 3268 l4_proto = 0; in i40e_tx_enable_csum() 3280 l4_proto = ip.v4->protocol; in i40e_tx_enable_csum() 3291 l4_proto = ip.v6->nexthdr; in i40e_tx_enable_csum() 3294 &l4_proto, &frag_off); in i40e_tx_enable_csum() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/crypto/ |
A D | fw.h | 41 u8 l4_proto; member
|
A D | tls.c | 219 front->l4_proto = IPPROTO_TCP; in nfp_net_tls_set_l4()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_fs_ethtool.c | 269 if (l3_mask->l4_proto) { in parse_ip6() 270 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->l4_proto); in parse_ip6() 271 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->l4_proto); in parse_ip6() 614 if (l3_mask->l4_proto) in validate_ip6()
|
/linux/net/openvswitch/ |
A D | actions.c | 379 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()
|
/linux/drivers/net/ethernet/sfc/falcon/ |
A D | ethtool.c | 918 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in ef4_ethtool_get_class_rule() 919 uip6_entry->l4_proto = spec.ip_proto; in ef4_ethtool_get_class_rule() 1172 if (uip6_mask->l4_proto) { in ef4_ethtool_set_class_rule() 1173 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in ef4_ethtool_set_class_rule() 1176 spec.ip_proto = uip6_entry->l4_proto; in ef4_ethtool_set_class_rule()
|
/linux/drivers/net/ethernet/sfc/ |
A D | ethtool_common.c | 776 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()
|
/linux/drivers/net/vmxnet3/ |
A D | vmxnet3_ethtool.c | 268 u8 l4_proto = 0; in vmxnet3_features_check() local 274 l4_proto = ip_hdr(skb)->protocol; in vmxnet3_features_check() 277 l4_proto = ipv6_hdr(skb)->nexthdr; in vmxnet3_features_check() 283 switch (l4_proto) { in vmxnet3_features_check()
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-ethtool.c | 406 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()
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
A D | dpaa_eth.c | 1451 u8 l4_proto; in dpaa_enable_tx_csum() local 1482 l4_proto = iph->protocol; in dpaa_enable_tx_csum() 1488 l4_proto = ipv6h->nexthdr; in dpaa_enable_tx_csum() 1501 switch (l4_proto) { in dpaa_enable_tx_csum() 1512 l4_proto); in dpaa_enable_tx_csum()
|
/linux/drivers/net/ethernet/marvell/ |
A D | mvneta.c | 1748 int ip_hdr_len, int l4_proto) in mvneta_txq_desc_csum() argument 1764 if (l4_proto == IPPROTO_TCP) in mvneta_txq_desc_csum() 1766 else if (l4_proto == IPPROTO_UDP) in mvneta_txq_desc_csum() 1922 u8 l4_proto; in mvneta_skb_tx_csum() local 1929 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum() 1936 l4_proto = ip6h->nexthdr; in mvneta_skb_tx_csum() 1941 l3_proto, ip_hdr_len, l4_proto); in mvneta_skb_tx_csum()
|