net/i40e: add new packet types for device X722
There are 6 new PCTYPEs enabled in the device x722. The 6 new PCTYPEs As below: * NonF Unicast IPv4, UDP * NonF Multicast IPv4, UDP * NonF IPv4, TCP, SYN, no ACK * NonF Unicast IPv6, UDP * NonF Multicast IPv6, UDP Signed-off-by: Jeff Guo <jia.guo@intel.com> Acked-by: Jingjing Wu <jingjing.wu@intel.com>
This commit is contained in:
parent
a6cebea95c
commit
1ab43b6160
@ -6137,9 +6137,20 @@ i40e_config_hena(uint64_t flags)
|
||||
if (flags & ETH_RSS_FRAG_IPV4)
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_FRAG_IPV4;
|
||||
if (flags & ETH_RSS_NONFRAG_IPV4_TCP)
|
||||
#ifdef X722_SUPPORT
|
||||
hena |= (1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP) |
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK);
|
||||
#else
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP;
|
||||
#endif
|
||||
if (flags & ETH_RSS_NONFRAG_IPV4_UDP)
|
||||
#ifdef X722_SUPPORT
|
||||
hena |= (1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_UDP) |
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP) |
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP);
|
||||
#else
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_UDP;
|
||||
#endif
|
||||
if (flags & ETH_RSS_NONFRAG_IPV4_SCTP)
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_SCTP;
|
||||
if (flags & ETH_RSS_NONFRAG_IPV4_OTHER)
|
||||
@ -6147,9 +6158,20 @@ i40e_config_hena(uint64_t flags)
|
||||
if (flags & ETH_RSS_FRAG_IPV6)
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_FRAG_IPV6;
|
||||
if (flags & ETH_RSS_NONFRAG_IPV6_TCP)
|
||||
#ifdef X722_SUPPORT
|
||||
hena |= (1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP) |
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK);
|
||||
#else
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP;
|
||||
#endif
|
||||
if (flags & ETH_RSS_NONFRAG_IPV6_UDP)
|
||||
#ifdef X722_SUPPORT
|
||||
hena |= (1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_UDP) |
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP) |
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP);
|
||||
#else
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_UDP;
|
||||
#endif
|
||||
if (flags & ETH_RSS_NONFRAG_IPV6_SCTP)
|
||||
hena |= 1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_SCTP;
|
||||
if (flags & ETH_RSS_NONFRAG_IPV6_OTHER)
|
||||
@ -6172,8 +6194,18 @@ i40e_parse_hena(uint64_t flags)
|
||||
rss_hf |= ETH_RSS_FRAG_IPV4;
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV4_TCP;
|
||||
#ifdef X722_SUPPORT
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV4_TCP;
|
||||
#endif
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_UDP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV4_UDP;
|
||||
#ifdef X722_SUPPORT
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV4_UDP;
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV4_UDP;
|
||||
#endif
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_SCTP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV4_SCTP;
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_OTHER))
|
||||
@ -6182,8 +6214,18 @@ i40e_parse_hena(uint64_t flags)
|
||||
rss_hf |= ETH_RSS_FRAG_IPV6;
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV6_TCP;
|
||||
#ifdef X722_SUPPORT
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV6_TCP;
|
||||
#endif
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_UDP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV6_UDP;
|
||||
#ifdef X722_SUPPORT
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV6_UDP;
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV6_UDP;
|
||||
#endif
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_SCTP))
|
||||
rss_hf |= ETH_RSS_NONFRAG_IPV6_SCTP;
|
||||
if (flags & (1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_OTHER))
|
||||
@ -7047,6 +7089,26 @@ i40e_get_valid_input_set(enum i40e_filter_pctype pctype,
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT |
|
||||
I40E_INSET_FLEX_PAYLOAD,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_VLAN_TUNNEL | I40E_INSET_IPV4_TOS |
|
||||
I40E_INSET_IPV4_PROTO | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_TUNNEL_DMAC | I40E_INSET_TUNNEL_ID |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT |
|
||||
I40E_INSET_FLEX_PAYLOAD,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_VLAN_TUNNEL | I40E_INSET_IPV4_TOS |
|
||||
I40E_INSET_IPV4_PROTO | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_TUNNEL_DMAC | I40E_INSET_TUNNEL_ID |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT |
|
||||
I40E_INSET_FLEX_PAYLOAD,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
@ -7056,6 +7118,17 @@ i40e_get_valid_input_set(enum i40e_filter_pctype pctype,
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT |
|
||||
I40E_INSET_TCP_FLAGS | I40E_INSET_FLEX_PAYLOAD,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_VLAN_TUNNEL | I40E_INSET_IPV4_TOS |
|
||||
I40E_INSET_IPV4_PROTO | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_TUNNEL_DMAC | I40E_INSET_TUNNEL_ID |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT |
|
||||
I40E_INSET_TCP_FLAGS | I40E_INSET_FLEX_PAYLOAD,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_SCTP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
@ -7089,6 +7162,26 @@ i40e_get_valid_input_set(enum i40e_filter_pctype pctype,
|
||||
I40E_INSET_IPV6_HOP_LIMIT | I40E_INSET_IPV6_SRC |
|
||||
I40E_INSET_IPV6_DST | I40E_INSET_SRC_PORT |
|
||||
I40E_INSET_DST_PORT | I40E_INSET_FLEX_PAYLOAD,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_VLAN_TUNNEL | I40E_INSET_IPV6_TC |
|
||||
I40E_INSET_IPV6_FLOW | I40E_INSET_IPV6_NEXT_HDR |
|
||||
I40E_INSET_IPV6_HOP_LIMIT | I40E_INSET_IPV6_SRC |
|
||||
I40E_INSET_IPV6_DST | I40E_INSET_SRC_PORT |
|
||||
I40E_INSET_DST_PORT | I40E_INSET_TCP_FLAGS |
|
||||
I40E_INSET_FLEX_PAYLOAD,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_VLAN_TUNNEL | I40E_INSET_IPV6_TC |
|
||||
I40E_INSET_IPV6_FLOW | I40E_INSET_IPV6_NEXT_HDR |
|
||||
I40E_INSET_IPV6_HOP_LIMIT | I40E_INSET_IPV6_SRC |
|
||||
I40E_INSET_IPV6_DST | I40E_INSET_SRC_PORT |
|
||||
I40E_INSET_DST_PORT | I40E_INSET_TCP_FLAGS |
|
||||
I40E_INSET_FLEX_PAYLOAD,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
@ -7098,6 +7191,17 @@ i40e_get_valid_input_set(enum i40e_filter_pctype pctype,
|
||||
I40E_INSET_IPV6_DST | I40E_INSET_SRC_PORT |
|
||||
I40E_INSET_DST_PORT | I40E_INSET_TCP_FLAGS |
|
||||
I40E_INSET_FLEX_PAYLOAD,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_VLAN_TUNNEL | I40E_INSET_IPV6_TC |
|
||||
I40E_INSET_IPV6_FLOW | I40E_INSET_IPV6_NEXT_HDR |
|
||||
I40E_INSET_IPV6_HOP_LIMIT | I40E_INSET_IPV6_SRC |
|
||||
I40E_INSET_IPV6_DST | I40E_INSET_SRC_PORT |
|
||||
I40E_INSET_DST_PORT | I40E_INSET_TCP_FLAGS |
|
||||
I40E_INSET_FLEX_PAYLOAD,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_SCTP] =
|
||||
I40E_INSET_DMAC | I40E_INSET_SMAC |
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
@ -7137,11 +7241,30 @@ i40e_get_valid_input_set(enum i40e_filter_pctype pctype,
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_IPV4_TOS | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_IPV4_TOS | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_IPV4_TOS | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_IPV4_TOS | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_IPV4_TOS | I40E_INSET_IPV4_TTL |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_SCTP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
@ -7163,11 +7286,30 @@ i40e_get_valid_input_set(enum i40e_filter_pctype pctype,
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_IPV6_TC | I40E_INSET_IPV6_HOP_LIMIT |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_IPV6_TC | I40E_INSET_IPV6_HOP_LIMIT |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_IPV6_TC | I40E_INSET_IPV6_HOP_LIMIT |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_IPV6_TC | I40E_INSET_IPV6_HOP_LIMIT |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_IPV6_TC | I40E_INSET_IPV6_HOP_LIMIT |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_SCTP] =
|
||||
I40E_INSET_VLAN_OUTER | I40E_INSET_VLAN_INNER |
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
@ -7220,9 +7362,22 @@ i40e_get_default_input_set(uint16_t pctype)
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_UDP] =
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP] =
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP] =
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP] =
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK] =
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_SCTP] =
|
||||
I40E_INSET_IPV4_SRC | I40E_INSET_IPV4_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT |
|
||||
@ -7234,9 +7389,22 @@ i40e_get_default_input_set(uint16_t pctype)
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_UDP] =
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP] =
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP] =
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP] =
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK] =
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_SCTP] =
|
||||
I40E_INSET_IPV6_SRC | I40E_INSET_IPV6_DST |
|
||||
I40E_INSET_SRC_PORT | I40E_INSET_DST_PORT |
|
||||
@ -7993,8 +8161,18 @@ i40e_pctype_to_flowtype(enum i40e_filter_pctype pctype)
|
||||
[I40E_FILTER_PCTYPE_FRAG_IPV4] = RTE_ETH_FLOW_FRAG_IPV4,
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_UDP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV4_UDP,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV4_UDP,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV4_UDP,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV4_TCP,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV4_TCP,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_SCTP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV4_SCTP,
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV4_OTHER] =
|
||||
@ -8002,8 +8180,18 @@ i40e_pctype_to_flowtype(enum i40e_filter_pctype pctype)
|
||||
[I40E_FILTER_PCTYPE_FRAG_IPV6] = RTE_ETH_FLOW_FRAG_IPV6,
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_UDP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV6_UDP,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV6_UDP,
|
||||
[I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV6_UDP,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV6_TCP,
|
||||
#ifdef X722_SUPPORT
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV6_TCP,
|
||||
#endif
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_SCTP] =
|
||||
RTE_ETH_FLOW_NONFRAG_IPV6_SCTP,
|
||||
[I40E_FILTER_PCTYPE_NONF_IPV6_OTHER] =
|
||||
|
@ -150,6 +150,29 @@ enum i40e_flxpld_layer_idx {
|
||||
ETH_RSS_L2_PAYLOAD)
|
||||
|
||||
/* All bits of RSS hash enable */
|
||||
#ifdef X722_SUPPORT
|
||||
#define I40E_RSS_HENA_ALL ( \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_UDP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_SCTP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_OTHER) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_FRAG_IPV4) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_UDP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_SCTP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_OTHER) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_FRAG_IPV6) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_FCOE_OX) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_FCOE_RX) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_FCOE_OTHER) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_L2_PAYLOAD))
|
||||
#else
|
||||
#define I40E_RSS_HENA_ALL ( \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_UDP) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP) | \
|
||||
@ -165,6 +188,7 @@ enum i40e_flxpld_layer_idx {
|
||||
(1ULL << I40E_FILTER_PCTYPE_FCOE_RX) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_FCOE_OTHER) | \
|
||||
(1ULL << I40E_FILTER_PCTYPE_L2_PAYLOAD))
|
||||
#endif
|
||||
|
||||
#define I40E_MISC_VEC_ID RTE_INTR_VEC_ZERO_OFFSET
|
||||
#define I40E_RX_VEC_START RTE_INTR_VEC_RXTX_OFFSET
|
||||
@ -699,6 +723,26 @@ i40e_calc_itr_interval(int16_t interval)
|
||||
(flow_type) == RTE_ETH_FLOW_NONFRAG_IPV6_OTHER || \
|
||||
(flow_type) == RTE_ETH_FLOW_L2_PAYLOAD)
|
||||
|
||||
#ifdef X722_SUPPORT
|
||||
#define I40E_VALID_PCTYPE(pctype) \
|
||||
((pctype) == I40E_FILTER_PCTYPE_FRAG_IPV4 || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV4_TCP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV4_TCP_SYN_NO_ACK || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV4_UDP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_UNICAST_IPV4_UDP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV4_UDP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV4_SCTP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV4_OTHER || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_FRAG_IPV6 || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV6_UDP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_UNICAST_IPV6_UDP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_MULTICAST_IPV6_UDP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV6_TCP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV6_TCP_SYN_NO_ACK || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV6_SCTP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV6_OTHER || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_L2_PAYLOAD)
|
||||
#else
|
||||
#define I40E_VALID_PCTYPE(pctype) \
|
||||
((pctype) == I40E_FILTER_PCTYPE_FRAG_IPV4 || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV4_TCP || \
|
||||
@ -711,5 +755,6 @@ i40e_calc_itr_interval(int16_t interval)
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV6_SCTP || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_NONF_IPV6_OTHER || \
|
||||
(pctype) == I40E_FILTER_PCTYPE_L2_PAYLOAD)
|
||||
#endif
|
||||
|
||||
#endif /* _I40E_ETHDEV_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user