Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Den_accel.h56 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/
Dhinic_tx.c204 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/
Dtxrx.h186 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/
Dena_eth_com.h48 enum ena_eth_io_l4_proto_index l4_proto; member
67 enum ena_eth_io_l4_proto_index l4_proto; member
Dena_eth_com.c342 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()
Dena_netdev.c987 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/
Diavf_txrx.c1979 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/
Di40e_txrx.c2680 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/
Dqede_fp.c237 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/
Dfw.h33 u8 l4_proto; member
Dtls.c218 front->l4_proto = IPPROTO_TCP; in nfp_net_tls_set_l4()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c258 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/
Dethtool.c917 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/
Dethtool.c940 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/
Dice_txrx.c1757 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/
Ddpaa2-ethtool.c360 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/
Ddpaa_eth.c1406 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/
Dmvneta.c1675 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/
Dmvpp2_main.c2019 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/
Daq_filters.c36 switch (fsp->h_u.usr_ip6_spec.l4_proto) { in aq_rule_is_approve()
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c868 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/
Dhclge_main.c5241 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/
Dixgbe_main.c8352 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()