/linux/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A 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/drivers/net/ethernet/huawei/hinic/ |
H A 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/drivers/net/ethernet/intel/idpf/ |
H A D | idpf_singleq_txrx.c | 31 u8 l4_proto = 0; in idpf_tx_singleq_csum() local 58 l4_proto = ip.v4->protocol; in idpf_tx_singleq_csum() 62 l4_proto = ip.v6->nexthdr; in idpf_tx_singleq_csum() 63 if (ipv6_ext_hdr(l4_proto)) in idpf_tx_singleq_csum() 66 &l4_proto, &frag_off); in idpf_tx_singleq_csum() 70 switch (l4_proto) { in idpf_tx_singleq_csum() 113 l4_proto = 0; in idpf_tx_singleq_csum() 125 l4_proto = ip.v4->protocol; in idpf_tx_singleq_csum() 136 l4_proto = ip.v6->nexthdr; in idpf_tx_singleq_csum() 137 if (ipv6_ext_hdr(l4_proto)) in idpf_tx_singleq_csum() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 177 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip.v6.proto; in ice_get_ethtool_fdir_entry() 188 fsp->m_u.usr_ip6_spec.l4_proto = rule->mask.v6.proto; in ice_get_ethtool_fdir_entry() 793 enum ice_flow_seg_hdr l4_proto) in ice_set_init_fdir_seg() argument 810 if (l4_proto == ICE_FLOW_SEG_HDR_TCP) { in ice_set_init_fdir_seg() 813 } else if (l4_proto == ICE_FLOW_SEG_HDR_UDP) { in ice_set_init_fdir_seg() 820 ICE_FLOW_SET_HDRS(seg, l3_proto | l4_proto); in ice_set_init_fdir_seg() 927 enum ice_flow_seg_hdr l4_proto, bool *perfect_fltr) in ice_set_fdir_ip4_seg() argument 940 if (l4_proto == ICE_FLOW_SEG_HDR_TCP) { in ice_set_fdir_ip4_seg() 943 } else if (l4_proto == ICE_FLOW_SEG_HDR_UDP) { in ice_set_fdir_ip4_seg() 946 } else if (l4_proto == ICE_FLOW_SEG_HDR_SCTP) { in ice_set_fdir_ip4_seg() [all …]
|
H A D | ice_arfs.c | 360 ice_arfs_is_perfect_flow_set(struct ice_hw *hw, __be16 l3_proto, u8 l4_proto) in ice_arfs_is_perfect_flow_set() argument 368 if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_UDP) in ice_arfs_is_perfect_flow_set() 370 else if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_TCP) in ice_arfs_is_perfect_flow_set() 372 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_UDP) in ice_arfs_is_perfect_flow_set() 374 else if (l3_proto == htons(ETH_P_IPV6) && l4_proto == IPPROTO_TCP) in ice_arfs_is_perfect_flow_set()
|
H A D | ice_txrx.c | 1770 u8 l4_proto = 0; in ice_tx_csum() local 1806 l4_proto = ip.v4->protocol; in ice_tx_csum() 1812 l4_proto = ip.v6->nexthdr; in ice_tx_csum() 1814 &l4_proto, &frag_off); in ice_tx_csum() 1820 switch (l4_proto) { in ice_tx_csum() 1869 l4_proto = 0; in ice_tx_csum() 1881 l4_proto = ip.v4->protocol; in ice_tx_csum() 1893 l4_proto = ip.v6->nexthdr; in ice_tx_csum() 1895 ipv6_skip_exthdr(skb, exthdr - skb->data, &l4_proto, in ice_tx_csum() 1906 switch (l4_proto) { in ice_tx_csum()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ethtool.c | 1365 fs->h_u.usr_ip4_spec.proto = entry->key.l4_proto; in nfp_net_fs_to_ethtool() 1368 fs->m_u.usr_ip4_spec.proto = entry->msk.l4_proto; in nfp_net_fs_to_ethtool() 1377 fs->h_u.usr_ip6_spec.l4_proto = entry->key.l4_proto; in nfp_net_fs_to_ethtool() 1378 fs->m_u.usr_ip6_spec.l4_proto = entry->msk.l4_proto; in nfp_net_fs_to_ethtool() 1548 entry->msk.l4_proto = fs->m_u.usr_ip4_spec.proto; in nfp_net_fs_from_ethtool() 1551 entry->key.l4_proto = fs->h_u.usr_ip4_spec.proto & entry->msk.l4_proto; in nfp_net_fs_from_ethtool() 1560 entry->msk.l4_proto = fs->m_u.usr_ip6_spec.l4_proto; in nfp_net_fs_from_ethtool() 1561 entry->key.l4_proto = fs->h_u.usr_ip6_spec.l4_proto & entry->msk.l4_proto; in nfp_net_fs_from_ethtool() 1574 entry->key.l4_proto = IPPROTO_TCP; in nfp_net_fs_from_ethtool() 1575 entry->msk.l4_proto = 0xff; in nfp_net_fs_from_ethtool() [all …]
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_flower.c | 142 st->l4_proto = match.key->ip_proto; in lan966x_tc_flower_handler_basic_usage() 144 if (st->l4_proto == IPPROTO_TCP) { in lan966x_tc_flower_handler_basic_usage() 158 } else if (st->l4_proto == IPPROTO_UDP) { in lan966x_tc_flower_handler_basic_usage() 175 st->l4_proto, ~0); in lan966x_tc_flower_handler_basic_usage()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect.c | 789 uint8_t l4_proto; in process_icmpv6() local 792 pkt_parse_ipv6(pkt, &_ipv6, &l4_proto, &is_fragment); in process_icmpv6() 813 return classify_icmp(pkt->skb, l4_proto, &tuple, sizeof(tuple.ipv6), in process_icmpv6() 898 uint8_t l4_proto; in process_ipv6() local 902 pkt_parse_ipv6(pkt, &_ipv6, &l4_proto, &is_fragment); in process_ipv6() 918 switch (l4_proto) { in process_ipv6()
|
H A D | test_cls_redirect_dynptr.c | 661 uint8_t l4_proto; in process_icmpv6() local 683 if (pkt_parse_ipv6(dynptr, offset, &ipv6, &l4_proto, &is_fragment)) { in process_icmpv6() 702 return classify_icmp(skb, l4_proto, &tuple, sizeof(tuple.ipv6), in process_icmpv6() 798 uint8_t l4_proto; in process_ipv6() local 803 if (pkt_parse_ipv6(dynptr, offset, &ipv6, &l4_proto, &is_fragment)) { in process_ipv6() 818 switch (l4_proto) { in process_ipv6()
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_txrx.c | 1629 u8 l4_proto = 0; in iavf_tx_enable_csum() local 1648 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 1653 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 1656 &l4_proto, &frag_off); in iavf_tx_enable_csum() 1660 switch (l4_proto) { in iavf_tx_enable_csum() 1704 l4_proto = 0; in iavf_tx_enable_csum() 1716 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 1727 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 1730 &l4_proto, &frag_off); in iavf_tx_enable_csum() 1737 switch (l4_proto) { in iavf_tx_enable_csum()
|
H A D | iavf_ethtool.c | 1021 fsp->h_u.usr_ip6_spec.l4_proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry() 1028 fsp->m_u.usr_ip6_spec.l4_proto = rule->ip_mask.proto; in iavf_get_ethtool_fdir_entry() 1215 fltr->ip_data.proto = fsp->h_u.usr_ip6_spec.l4_proto; in iavf_add_fdir_fltr_info() 1222 fltr->ip_mask.proto = fsp->m_u.usr_ip6_spec.l4_proto; in iavf_add_fdir_fltr_info()
|
/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_eth_com.h | 23 enum ena_eth_io_l4_proto_index l4_proto; member 42 enum ena_eth_io_l4_proto_index l4_proto; member
|
H A D | ena_eth_com.c | 361 ena_rx_ctx->l4_proto = in ena_com_rx_set_flags() 380 ena_rx_ctx->l3_proto, ena_rx_ctx->l4_proto, ena_rx_ctx->l3_csum_err, in ena_com_rx_set_flags() 482 desc->meta_ctrl |= (ena_tx_ctx->l4_proto << in ena_com_prepare_tx()
|
H A D | ena_netdev.c | 1121 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_rx_checksum() 1122 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) { in ena_rx_checksum() 1156 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_set_rx_hash() 1157 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) in ena_set_rx_hash() 1256 ena_rx_ctx.l4_proto, ena_rx_ctx.hash); in ena_clean_rx_irq() 2482 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_TCP; in ena_tx_csum() 2484 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_UDP; in ena_tx_csum()
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_tc.h | 15 u8 l4_proto; member
|
/linux/drivers/net/ethernet/qlogic/qede/ |
H A 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/drivers/net/ethernet/netronome/nfp/crypto/ |
H A D | fw.h | 41 u8 l4_proto; member
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 2873 int l4_proto; in i40e_atr() local 2901 l4_proto = hdr.ipv4->protocol; in i40e_atr() 2908 l4_proto = in i40e_atr() 2914 if (l4_proto != IPPROTO_TCP) in i40e_atr() 3263 u8 l4_proto = 0; in i40e_tx_enable_csum() local 3297 l4_proto = ip.v4->protocol; in i40e_tx_enable_csum() 3304 l4_proto = ip.v6->nexthdr; in i40e_tx_enable_csum() 3306 &l4_proto, &frag_off); in i40e_tx_enable_csum() 3312 switch (l4_proto) { in i40e_tx_enable_csum() 3356 l4_proto = 0; in i40e_tx_enable_csum() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | txrx.h | 436 u8 l4_proto; member 459 if (swp_spec->l4_proto) { in mlx5e_set_eseg_swp() 461 if (swp_spec->l4_proto == IPPROTO_UDP) in mlx5e_set_eseg_swp()
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 771 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in efx_ethtool_get_class_rule() 772 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule() 1058 if (uip6_mask->l4_proto) { in efx_ethtool_set_class_rule() 1059 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in efx_ethtool_set_class_rule() 1062 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A 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/net/openvswitch/ |
H A D | actions.c | 398 static void update_ipv6_checksum(struct sk_buff *skb, u8 l4_proto, in update_ipv6_checksum() argument 403 if (l4_proto == NEXTHDR_TCP) { in update_ipv6_checksum() 407 } else if (l4_proto == NEXTHDR_UDP) { in update_ipv6_checksum() 418 } else if (l4_proto == NEXTHDR_ICMP) { in update_ipv6_checksum() 434 static void set_ipv6_addr(struct sk_buff *skb, u8 l4_proto, in set_ipv6_addr() argument 439 update_ipv6_checksum(skb, l4_proto, addr, new_addr); in set_ipv6_addr()
|
/linux/drivers/net/vmxnet3/ |
H A 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()
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_eth.c | 1484 u8 l4_proto; in dpaa_enable_tx_csum() local 1510 l4_proto = iph->protocol; in dpaa_enable_tx_csum() 1516 l4_proto = ipv6h->nexthdr; in dpaa_enable_tx_csum() 1529 switch (l4_proto) { in dpaa_enable_tx_csum() 1540 l4_proto); in dpaa_enable_tx_csum()
|