/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | ipsec.c | 15 int l4_proto; in nfp_nfd3_ipsec_tx() local 24 l4_proto = xo->proto; in nfp_nfd3_ipsec_tx() 26 l4_proto = xo->inner_ipproto; in nfp_nfd3_ipsec_tx() 30 switch (l4_proto) { in nfp_nfd3_ipsec_tx()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | en_accel.h | 60 u8 l4_proto; in mlx5e_tx_tunnel_accel() local 65 l4_proto = ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel() 68 l4_proto = ipv6_find_hdr(skb, &offset, -1, NULL, NULL); in mlx5e_tx_tunnel_accel() 74 if (l4_proto != IPPROTO_UDP || in mlx5e_tx_tunnel_accel() 78 swp_spec.l4_proto = l4_proto; in mlx5e_tx_tunnel_accel()
|
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_tx.c | 203 u8 *l4_proto) in get_inner_l3_l4_type() argument 211 *l4_proto = ip->v4->protocol; in get_inner_l3_l4_type() 215 *l4_proto = ip->v6->nexthdr; in get_inner_l3_l4_type() 220 ipv6_skip_exthdr(skb, start, l4_proto, &frag_off); in get_inner_l3_l4_type() 224 *l4_proto = 0; in get_inner_l3_l4_type() 229 enum hinic_offload_type offload_type, u8 l4_proto, in get_inner_l4_info() argument 237 switch (l4_proto) { in get_inner_l4_info() 281 u8 l4_proto; in offload_tso() local 336 &l4_proto); in offload_tso() 341 if (l4_proto == IPPROTO_TCP) in offload_tso() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 169 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip.v6.proto; in ice_get_ethtool_fdir_entry() 180 fsp->m_u.usr_ip6_spec.l4_proto = rule->mask.v6.proto; in ice_get_ethtool_fdir_entry() 783 enum ice_flow_seg_hdr l4_proto) in ice_set_init_fdir_seg() argument 800 if (l4_proto == ICE_FLOW_SEG_HDR_TCP) { in ice_set_init_fdir_seg() 803 } else if (l4_proto == ICE_FLOW_SEG_HDR_UDP) { in ice_set_init_fdir_seg() 810 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg() 917 enum ice_flow_seg_hdr l4_proto, bool *perfect_fltr) in ice_set_fdir_ip4_seg() argument 930 if (l4_proto == ICE_FLOW_SEG_HDR_TCP) { in ice_set_fdir_ip4_seg() 933 } else if (l4_proto == ICE_FLOW_SEG_HDR_UDP) { in ice_set_fdir_ip4_seg() 936 } else if (l4_proto == ICE_FLOW_SEG_HDR_SCTP) { in ice_set_fdir_ip4_seg() [all …]
|
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()
|
D | ice_txrx.c | 1809 u8 l4_proto = 0; in ice_tx_csum() local 1845 l4_proto = ip.v4->protocol; in ice_tx_csum() 1851 l4_proto = ip.v6->nexthdr; in ice_tx_csum() 1853 &l4_proto, &frag_off); in ice_tx_csum() 1859 switch (l4_proto) { in ice_tx_csum() 1908 l4_proto = 0; in ice_tx_csum() 1920 l4_proto = ip.v4->protocol; in ice_tx_csum() 1932 l4_proto = ip.v6->nexthdr; in ice_tx_csum() 1934 ipv6_skip_exthdr(skb, exthdr - skb->data, &l4_proto, in ice_tx_csum() 1945 switch (l4_proto) { in ice_tx_csum()
|
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_tc_flower.c | 136 st->l4_proto = match.key->ip_proto; in lan966x_tc_flower_handler_basic_usage() 138 if (st->l4_proto == IPPROTO_TCP) { in lan966x_tc_flower_handler_basic_usage() 152 } else if (st->l4_proto == IPPROTO_UDP) { in lan966x_tc_flower_handler_basic_usage() 169 st->l4_proto, ~0); in lan966x_tc_flower_handler_basic_usage()
|
/linux-6.6.21/drivers/net/ethernet/microchip/vcap/ |
D | vcap_tc.h | 15 u8 l4_proto; member
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | test_cls_redirect_dynptr.c | 659 uint8_t l4_proto; in process_icmpv6() local 681 if (pkt_parse_ipv6(dynptr, offset, &ipv6, &l4_proto, &is_fragment)) { in process_icmpv6() 700 return classify_icmp(skb, l4_proto, &tuple, sizeof(tuple.ipv6), in process_icmpv6() 796 uint8_t l4_proto; in process_ipv6() local 801 if (pkt_parse_ipv6(dynptr, offset, &ipv6, &l4_proto, &is_fragment)) { in process_ipv6() 816 switch (l4_proto) { in process_ipv6()
|
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-6.6.21/drivers/net/ethernet/amazon/ena/ |
D | ena_eth_com.h | 25 enum ena_eth_io_l4_proto_index l4_proto; member 44 enum ena_eth_io_l4_proto_index l4_proto; member
|
D | ena_eth_com.c | 353 ena_rx_ctx->l4_proto = in ena_com_rx_set_flags() 372 ena_rx_ctx->l3_proto, ena_rx_ctx->l4_proto, in ena_com_rx_set_flags() 476 desc->meta_ctrl |= (ena_tx_ctx->l4_proto << in ena_com_prepare_tx()
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 1991 u8 l4_proto = 0; in iavf_tx_enable_csum() local 2010 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 2015 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 2018 &l4_proto, &frag_off); in iavf_tx_enable_csum() 2022 switch (l4_proto) { in iavf_tx_enable_csum() 2066 l4_proto = 0; in iavf_tx_enable_csum() 2078 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 2089 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 2092 &l4_proto, &frag_off); in iavf_tx_enable_csum() 2099 switch (l4_proto) { in iavf_tx_enable_csum()
|
D | iavf_ethtool.c | 1162 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry() 1169 fsp->m_u.usr_ip6_spec.l4_proto = rule->ip_mask.proto; in iavf_get_ethtool_fdir_entry() 1353 fltr->ip_data.proto = fsp->h_u.usr_ip6_spec.l4_proto; in iavf_add_fdir_fltr_info() 1360 fltr->ip_mask.proto = fsp->m_u.usr_ip6_spec.l4_proto; in iavf_add_fdir_fltr_info()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/crypto/ |
D | fw.h | 41 u8 l4_proto; member
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/ |
D | qede_fp.c | 213 u8 l4_proto; in qede_set_params_for_ipv6_ext() local 226 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_set_params_for_ipv6_ext() 228 l4_proto = ip_hdr(skb)->protocol; in qede_set_params_for_ipv6_ext() 230 if (l4_proto == IPPROTO_UDP) in qede_set_params_for_ipv6_ext() 1765 u8 l4_proto = 0; in qede_features_check() local 1769 l4_proto = ip_hdr(skb)->protocol; in qede_features_check() 1772 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_features_check() 1782 if (l4_proto == IPPROTO_UDP) { in qede_features_check() 1796 } else if (l4_proto == IPPROTO_IPIP) { in qede_features_check()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | txrx.h | 415 u8 l4_proto; member 438 if (swp_spec->l4_proto) { in mlx5e_set_eseg_swp() 440 if (swp_spec->l4_proto == IPPROTO_UDP) in mlx5e_set_eseg_swp()
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 2885 int l4_proto; in i40e_atr() local 2913 l4_proto = hdr.ipv4->protocol; in i40e_atr() 2920 l4_proto = in i40e_atr() 2926 if (l4_proto != IPPROTO_TCP) in i40e_atr() 3277 u8 l4_proto = 0; in i40e_tx_enable_csum() local 3311 l4_proto = ip.v4->protocol; in i40e_tx_enable_csum() 3318 l4_proto = ip.v6->nexthdr; in i40e_tx_enable_csum() 3320 &l4_proto, &frag_off); in i40e_tx_enable_csum() 3326 switch (l4_proto) { in i40e_tx_enable_csum() 3370 l4_proto = 0; in i40e_tx_enable_csum() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 282 if (l3_mask->l4_proto) { in parse_ip6() 283 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->l4_proto); in parse_ip6() 284 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->l4_proto); in parse_ip6() 622 if (l3_mask->l4_proto) in validate_ip6()
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.c | 777 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in efx_ethtool_get_class_rule() 778 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule() 1077 if (uip6_mask->l4_proto) { in efx_ethtool_set_class_rule() 1078 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in efx_ethtool_set_class_rule() 1081 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 777 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in efx_ethtool_get_class_rule() 778 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule() 1076 if (uip6_mask->l4_proto) { in efx_ethtool_set_class_rule() 1077 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in efx_ethtool_set_class_rule() 1080 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
|
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 924 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in ef4_ethtool_get_class_rule() 925 uip6_entry->l4_proto = spec.ip_proto; in ef4_ethtool_get_class_rule() 1178 if (uip6_mask->l4_proto) { in ef4_ethtool_set_class_rule() 1179 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in ef4_ethtool_set_class_rule() 1182 spec.ip_proto = uip6_entry->l4_proto; in ef4_ethtool_set_class_rule()
|
/linux-6.6.21/net/openvswitch/ |
D | actions.c | 382 static void update_ipv6_checksum(struct sk_buff *skb, u8 l4_proto, in update_ipv6_checksum() argument 387 if (l4_proto == NEXTHDR_TCP) { in update_ipv6_checksum() 391 } else if (l4_proto == NEXTHDR_UDP) { in update_ipv6_checksum() 402 } else if (l4_proto == NEXTHDR_ICMP) { in update_ipv6_checksum() 418 static void set_ipv6_addr(struct sk_buff *skb, u8 l4_proto, in set_ipv6_addr() argument 423 update_ipv6_checksum(skb, l4_proto, addr, new_addr); in set_ipv6_addr()
|
/linux-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_tc_flower.c | 100 st->l4_proto = mt.key->ip_proto; in sparx5_tc_flower_handler_basic_usage() 101 if (st->l4_proto == IPPROTO_TCP) { in sparx5_tc_flower_handler_basic_usage() 107 } else if (st->l4_proto == IPPROTO_UDP) { in sparx5_tc_flower_handler_basic_usage() 123 st->l4_proto, ~0); in sparx5_tc_flower_handler_basic_usage()
|
/linux-6.6.21/drivers/net/vmxnet3/ |
D | vmxnet3_ethtool.c | 291 u8 l4_proto = 0; in vmxnet3_features_check() local 297 l4_proto = ip_hdr(skb)->protocol; in vmxnet3_features_check() 300 l4_proto = ipv6_hdr(skb)->nexthdr; in vmxnet3_features_check() 306 switch (l4_proto) { in vmxnet3_features_check()
|