/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | en_accel.h | 56 u8 l4_proto; in mlx5e_tx_tunnel_accel() local 61 l4_proto = ip_hdr(skb)->protocol; in mlx5e_tx_tunnel_accel() 64 l4_proto = ipv6_find_hdr(skb, &offset, -1, NULL, NULL); in mlx5e_tx_tunnel_accel() 70 if (l4_proto != IPPROTO_UDP || in mlx5e_tx_tunnel_accel() 74 swp_spec.l4_proto = l4_proto; in mlx5e_tx_tunnel_accel()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_tx.c | 204 u8 *l4_proto) in get_inner_l3_l4_type() argument 212 *l4_proto = ip->v4->protocol; in get_inner_l3_l4_type() 216 *l4_proto = ip->v6->nexthdr; in get_inner_l3_l4_type() 221 ipv6_skip_exthdr(skb, start, l4_proto, &frag_off); in get_inner_l3_l4_type() 225 *l4_proto = 0; in get_inner_l3_l4_type() 230 enum hinic_offload_type offload_type, u8 l4_proto, in get_inner_l4_info() argument 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() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | txrx.h | 186 u8 l4_proto; member 200 if (swp_spec->l4_proto) { in mlx5e_set_eseg_swp() 202 if (swp_spec->l4_proto == IPPROTO_UDP) in mlx5e_set_eseg_swp()
|
/drivers/net/ethernet/amazon/ena/ |
D | ena_eth_com.h | 48 enum ena_eth_io_l4_proto_index l4_proto; member 67 enum ena_eth_io_l4_proto_index l4_proto; member
|
D | ena_eth_com.c | 342 ena_rx_ctx->l4_proto = in ena_com_rx_set_flags() 360 ena_rx_ctx->l3_proto, ena_rx_ctx->l4_proto, in ena_com_rx_set_flags() 457 desc->meta_ctrl |= (ena_tx_ctx->l4_proto << in ena_com_prepare_tx()
|
D | ena_netdev.c | 987 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_rx_checksum() 988 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) { in ena_rx_checksum() 1025 if (likely((ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_TCP) || in ena_set_rx_hash() 1026 (ena_rx_ctx->l4_proto == ENA_ETH_IO_L4_PROTO_UDP))) in ena_set_rx_hash() 1083 ena_rx_ctx.l4_proto, ena_rx_ctx.hash); in ena_clean_rx_irq() 2096 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_TCP; in ena_tx_csum() 2098 ena_tx_ctx->l4_proto = ENA_ETH_IO_L4_PROTO_UDP; in ena_tx_csum()
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 1979 u8 l4_proto = 0; in iavf_tx_enable_csum() local 1998 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 2003 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 2006 &l4_proto, &frag_off); in iavf_tx_enable_csum() 2010 switch (l4_proto) { in iavf_tx_enable_csum() 2054 l4_proto = 0; in iavf_tx_enable_csum() 2066 l4_proto = ip.v4->protocol; in iavf_tx_enable_csum() 2077 l4_proto = ip.v6->nexthdr; in iavf_tx_enable_csum() 2080 &l4_proto, &frag_off); in iavf_tx_enable_csum() 2087 switch (l4_proto) { in iavf_tx_enable_csum()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 2680 int l4_proto; in i40e_atr() local 2708 l4_proto = hdr.ipv4->protocol; in i40e_atr() 2715 l4_proto = in i40e_atr() 2721 if (l4_proto != IPPROTO_TCP) in i40e_atr() 3057 u8 l4_proto = 0; in i40e_tx_enable_csum() local 3076 l4_proto = ip.v4->protocol; in i40e_tx_enable_csum() 3081 l4_proto = ip.v6->nexthdr; in i40e_tx_enable_csum() 3084 &l4_proto, &frag_off); in i40e_tx_enable_csum() 3088 switch (l4_proto) { in i40e_tx_enable_csum() 3132 l4_proto = 0; in i40e_tx_enable_csum() [all …]
|
/drivers/net/ethernet/qlogic/qede/ |
D | qede_fp.c | 237 u8 l4_proto; in qede_set_params_for_ipv6_ext() local 250 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_set_params_for_ipv6_ext() 252 l4_proto = ip_hdr(skb)->protocol; in qede_set_params_for_ipv6_ext() 254 if (l4_proto == IPPROTO_UDP) in qede_set_params_for_ipv6_ext() 1709 u8 l4_proto = 0; in qede_features_check() local 1713 l4_proto = ip_hdr(skb)->protocol; in qede_features_check() 1716 l4_proto = ipv6_hdr(skb)->nexthdr; in qede_features_check() 1726 if (l4_proto == IPPROTO_UDP) { in qede_features_check()
|
/drivers/net/ethernet/netronome/nfp/crypto/ |
D | fw.h | 33 u8 l4_proto; member
|
D | tls.c | 218 front->l4_proto = IPPROTO_TCP; in nfp_net_tls_set_l4()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 258 if (l3_mask->l4_proto) { in parse_ip6() 259 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->l4_proto); in parse_ip6() 260 MLX5E_FTE_SET(headers_v, ip_protocol, l3_val->l4_proto); in parse_ip6() 563 if (l3_mask->l4_proto) in validate_ip6()
|
/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 917 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in ef4_ethtool_get_class_rule() 918 uip6_entry->l4_proto = spec.ip_proto; in ef4_ethtool_get_class_rule() 1171 if (uip6_mask->l4_proto) { in ef4_ethtool_set_class_rule() 1172 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in ef4_ethtool_set_class_rule() 1175 spec.ip_proto = uip6_entry->l4_proto; in ef4_ethtool_set_class_rule()
|
/drivers/net/ethernet/sfc/ |
D | ethtool.c | 940 uip6_mask->l4_proto = IP_PROTO_FULL_MASK; in efx_ethtool_get_class_rule() 941 uip6_entry->l4_proto = spec.ip_proto; in efx_ethtool_get_class_rule() 1236 if (uip6_mask->l4_proto) { in efx_ethtool_set_class_rule() 1237 if (uip6_mask->l4_proto != IP_PROTO_FULL_MASK) in efx_ethtool_set_class_rule() 1240 spec.ip_proto = uip6_entry->l4_proto; in efx_ethtool_set_class_rule()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 1757 u8 l4_proto = 0; in ice_tx_csum() local 1775 l4_proto = ip.v4->protocol; in ice_tx_csum() 1787 l4_proto = ip.v6->nexthdr; in ice_tx_csum() 1789 ipv6_skip_exthdr(skb, exthdr - skb->data, &l4_proto, in ice_tx_csum() 1800 switch (l4_proto) { in ice_tx_csum()
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 360 void *key, void *mask, u8 l4_proto, u64 *fields) in prep_l4_rule() argument 402 *(u8 *)(key + off) = l4_proto; in prep_l4_rule()
|
/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.c | 1406 u8 l4_proto; in dpaa_enable_tx_csum() local 1437 l4_proto = iph->protocol; in dpaa_enable_tx_csum() 1443 l4_proto = ipv6h->nexthdr; in dpaa_enable_tx_csum() 1456 switch (l4_proto) { in dpaa_enable_tx_csum() 1467 l4_proto); in dpaa_enable_tx_csum()
|
/drivers/net/ethernet/marvell/ |
D | mvneta.c | 1675 int ip_hdr_len, int l4_proto) in mvneta_txq_desc_csum() argument 1691 if (l4_proto == IPPROTO_TCP) in mvneta_txq_desc_csum() 1693 else if (l4_proto == IPPROTO_UDP) in mvneta_txq_desc_csum() 1841 u8 l4_proto; in mvneta_skb_tx_csum() local 1848 l4_proto = ip4h->protocol; in mvneta_skb_tx_csum() 1855 l4_proto = ip6h->nexthdr; in mvneta_skb_tx_csum() 1860 l3_proto, ip_hdr_len, l4_proto); in mvneta_skb_tx_csum()
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 2019 int ip_hdr_len, int l4_proto) in mvpp2_txq_desc_csum() argument 2037 if (l4_proto == IPPROTO_TCP) { in mvpp2_txq_desc_csum() 2040 } else if (l4_proto == IPPROTO_UDP) { in mvpp2_txq_desc_csum() 2890 u8 l4_proto; in mvpp2_skb_tx_csum() local 2898 l4_proto = ip4h->protocol; in mvpp2_skb_tx_csum() 2905 l4_proto = ip6h->nexthdr; in mvpp2_skb_tx_csum() 2911 l3_proto, ip_hdr_len, l4_proto); in mvpp2_skb_tx_csum()
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 36 switch (fsp->h_u.usr_ip6_spec.l4_proto) { in aq_rule_is_approve()
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_enet.c | 868 u32 l4_proto = ol4_proto; in hns3_set_l2l3l4() local 899 l4_proto = il4_proto; in hns3_set_l2l3l4() 925 switch (l4_proto) { in hns3_set_l2l3l4()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 5241 if (!usr_ip6_spec->l4_proto) in hclge_fd_check_spec() 5458 rule->tuples.ip_proto = fs->h_u.usr_ip6_spec.l4_proto; in hclge_fd_get_tuple() 5459 rule->tuples_mask.ip_proto = fs->m_u.usr_ip6_spec.l4_proto; in hclge_fd_get_tuple() 5902 fs->h_u.usr_ip6_spec.l4_proto = rule->tuples.ip_proto; in hclge_get_fd_rule_info() 5903 fs->m_u.usr_ip6_spec.l4_proto = in hclge_get_fd_rule_info()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 8352 int l4_proto; in ixgbe_atr() local 8404 l4_proto = hdr.ipv4->protocol; in ixgbe_atr() 8408 l4_proto = ipv6_find_hdr(skb, &hlen, IPPROTO_TCP, NULL, NULL); in ixgbe_atr() 8415 if (l4_proto != IPPROTO_TCP) in ixgbe_atr()
|