* [dpdk-dev] [PATCH] net/bnxt: fix RSS action parser
@ 2021-10-26 5:14 Ajit Khaparde
2021-10-27 1:51 ` Ajit Khaparde
2021-10-29 17:22 ` Ferruh Yigit
0 siblings, 2 replies; 4+ messages in thread
From: Ajit Khaparde @ 2021-10-26 5:14 UTC (permalink / raw)
To: dev; +Cc: Kalesh AP, Somnath Kotur
[-- Attachment #1: Type: text/plain, Size: 1947 bytes --]
Minor fixes are needed in the RTE_FLOW RSS action parser.
1. Update the comment in the parser to indicate rss level 1 implies
RSS on outer header.
2. RSS action will not be supported if level is > 1.
3. RSS action will not be supported if user or application specifies
MARK or COUNT action.
4. If RSS types is not specified i.e., is 0, the best effort RSS should
use IPV4 and IPV6 headers. Currently we are considering only IPV4.
Fixes: fe0bab7eb34e ("net/bnxt: enhance support for RSS action")
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
---
drivers/net/bnxt/bnxt_flow.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_flow.c b/drivers/net/bnxt/bnxt_flow.c
index ced697a739..9526a8fc5a 100644
--- a/drivers/net/bnxt/bnxt_flow.c
+++ b/drivers/net/bnxt/bnxt_flow.c
@@ -1084,10 +1084,6 @@ bnxt_validate_rss_action(const struct rte_flow_action actions[])
break;
case RTE_FLOW_ACTION_TYPE_RSS:
break;
- case RTE_FLOW_ACTION_TYPE_MARK:
- break;
- case RTE_FLOW_ACTION_TYPE_COUNT:
- break;
default:
return -ENOTSUP;
}
@@ -1151,11 +1147,10 @@ bnxt_vnic_rss_cfg_update(struct bnxt *bp,
}
/* Currently RSS hash on inner and outer headers are supported.
- * 0 => Default setting
- * 1 => Inner
- * 2 => Outer
+ * 0 => Default (innermost RSS) setting
+ * 1 => Outermost
*/
- if (rss->level > 2) {
+ if (rss->level > 1) {
rte_flow_error_set(error,
ENOTSUP,
RTE_FLOW_ERROR_TYPE_ACTION,
@@ -1177,7 +1172,7 @@ bnxt_vnic_rss_cfg_update(struct bnxt *bp,
}
/* If RSS types is 0, use a best effort configuration */
- types = rss->types ? rss->types : RTE_ETH_RSS_IPV4;
+ types = rss->types ? rss->types : ETH_RSS_IPV4 | ETH_RSS_IPV6;
hash_type = bnxt_rte_to_hwrm_hash_types(types);
--
2.30.1 (Apple Git-130)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] net/bnxt: fix RSS action parser
2021-10-26 5:14 [dpdk-dev] [PATCH] net/bnxt: fix RSS action parser Ajit Khaparde
@ 2021-10-27 1:51 ` Ajit Khaparde
2021-10-29 17:22 ` Ferruh Yigit
1 sibling, 0 replies; 4+ messages in thread
From: Ajit Khaparde @ 2021-10-27 1:51 UTC (permalink / raw)
To: dpdk-dev; +Cc: Kalesh AP, Somnath Kotur
On Mon, Oct 25, 2021 at 10:14 PM Ajit Khaparde
<ajit.khaparde@broadcom.com> wrote:
>
> Minor fixes are needed in the RTE_FLOW RSS action parser.
> 1. Update the comment in the parser to indicate rss level 1 implies
> RSS on outer header.
> 2. RSS action will not be supported if level is > 1.
> 3. RSS action will not be supported if user or application specifies
> MARK or COUNT action.
> 4. If RSS types is not specified i.e., is 0, the best effort RSS should
> use IPV4 and IPV6 headers. Currently we are considering only IPV4.
>
> Fixes: fe0bab7eb34e ("net/bnxt: enhance support for RSS action")
>
> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> Acked-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
Patch applied to dpdk-next-net-brcm.
> ---
> drivers/net/bnxt/bnxt_flow.c | 13 ++++---------
> 1 file changed, 4 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/net/bnxt/bnxt_flow.c b/drivers/net/bnxt/bnxt_flow.c
> index ced697a739..9526a8fc5a 100644
> --- a/drivers/net/bnxt/bnxt_flow.c
> +++ b/drivers/net/bnxt/bnxt_flow.c
> @@ -1084,10 +1084,6 @@ bnxt_validate_rss_action(const struct rte_flow_action actions[])
> break;
> case RTE_FLOW_ACTION_TYPE_RSS:
> break;
> - case RTE_FLOW_ACTION_TYPE_MARK:
> - break;
> - case RTE_FLOW_ACTION_TYPE_COUNT:
> - break;
> default:
> return -ENOTSUP;
> }
> @@ -1151,11 +1147,10 @@ bnxt_vnic_rss_cfg_update(struct bnxt *bp,
> }
>
> /* Currently RSS hash on inner and outer headers are supported.
> - * 0 => Default setting
> - * 1 => Inner
> - * 2 => Outer
> + * 0 => Default (innermost RSS) setting
> + * 1 => Outermost
> */
> - if (rss->level > 2) {
> + if (rss->level > 1) {
> rte_flow_error_set(error,
> ENOTSUP,
> RTE_FLOW_ERROR_TYPE_ACTION,
> @@ -1177,7 +1172,7 @@ bnxt_vnic_rss_cfg_update(struct bnxt *bp,
> }
>
> /* If RSS types is 0, use a best effort configuration */
> - types = rss->types ? rss->types : RTE_ETH_RSS_IPV4;
> + types = rss->types ? rss->types : ETH_RSS_IPV4 | ETH_RSS_IPV6;
>
> hash_type = bnxt_rte_to_hwrm_hash_types(types);
>
> --
> 2.30.1 (Apple Git-130)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] net/bnxt: fix RSS action parser
2021-10-26 5:14 [dpdk-dev] [PATCH] net/bnxt: fix RSS action parser Ajit Khaparde
2021-10-27 1:51 ` Ajit Khaparde
@ 2021-10-29 17:22 ` Ferruh Yigit
2021-10-29 17:35 ` Ajit Khaparde
1 sibling, 1 reply; 4+ messages in thread
From: Ferruh Yigit @ 2021-10-29 17:22 UTC (permalink / raw)
To: Ajit Khaparde, dev; +Cc: Kalesh AP, Somnath Kotur
On 10/26/2021 6:14 AM, Ajit Khaparde wrote:
> Minor fixes are needed in the RTE_FLOW RSS action parser.
> 1. Update the comment in the parser to indicate rss level 1 implies
> RSS on outer header.
> 2. RSS action will not be supported if level is > 1.
> 3. RSS action will not be supported if user or application specifies
> MARK or COUNT action.
> 4. If RSS types is not specified i.e., is 0, the best effort RSS should
> use IPV4 and IPV6 headers. Currently we are considering only IPV4.
>
> Fixes: fe0bab7eb34e ("net/bnxt: enhance support for RSS action")
>
> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> Acked-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
<...>
> @@ -1177,7 +1172,7 @@ bnxt_vnic_rss_cfg_update(struct bnxt *bp,
> }
>
> /* If RSS types is 0, use a best effort configuration */
> - types = rss->types ? rss->types : RTE_ETH_RSS_IPV4;
> + types = rss->types ? rss->types : ETH_RSS_IPV4 | ETH_RSS_IPV6;
We should keep the RTE_ prefix, updating in the next-net.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] net/bnxt: fix RSS action parser
2021-10-29 17:22 ` Ferruh Yigit
@ 2021-10-29 17:35 ` Ajit Khaparde
0 siblings, 0 replies; 4+ messages in thread
From: Ajit Khaparde @ 2021-10-29 17:35 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dpdk-dev, Kalesh AP, Somnath Kotur
On Fri, Oct 29, 2021 at 10:22 AM Ferruh Yigit <ferruh.yigit@intel.com> wrote:
>
> On 10/26/2021 6:14 AM, Ajit Khaparde wrote:
> > Minor fixes are needed in the RTE_FLOW RSS action parser.
> > 1. Update the comment in the parser to indicate rss level 1 implies
> > RSS on outer header.
> > 2. RSS action will not be supported if level is > 1.
> > 3. RSS action will not be supported if user or application specifies
> > MARK or COUNT action.
> > 4. If RSS types is not specified i.e., is 0, the best effort RSS should
> > use IPV4 and IPV6 headers. Currently we are considering only IPV4.
> >
> > Fixes: fe0bab7eb34e ("net/bnxt: enhance support for RSS action")
> >
> > Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> > Acked-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> > Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
>
> <...>
>
> > @@ -1177,7 +1172,7 @@ bnxt_vnic_rss_cfg_update(struct bnxt *bp,
> > }
> >
> > /* If RSS types is 0, use a best effort configuration */
> > - types = rss->types ? rss->types : RTE_ETH_RSS_IPV4;
> > + types = rss->types ? rss->types : ETH_RSS_IPV4 | ETH_RSS_IPV6;
>
> We should keep the RTE_ prefix, updating in the next-net.
ACK. Thanks
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-29 17:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26 5:14 [dpdk-dev] [PATCH] net/bnxt: fix RSS action parser Ajit Khaparde
2021-10-27 1:51 ` Ajit Khaparde
2021-10-29 17:22 ` Ferruh Yigit
2021-10-29 17:35 ` Ajit Khaparde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).