Skip to contentSkip to conversation

doc: update bnxt feature list

PATCH Superseded Ajit Khaparde 2 participants 6 messages Nov 20, 2019 Network drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#1 lore raw

PATCH 2/2 net/bnxt: fix check for null spec and mask

In reply to Ajit Khaparde

bnxt_validate_and_parse_flow_type already has protocol specific NULL checks for rte_flow_item spec and mask and take actions accordingly. A check at the top of the loop is redundant and is preventing the protocol specific checks from being executed.

Fixes b7e01f386059 ("net/bnxt: handle cleanup if flow creation fails")
---
 drivers/net/bnxt/bnxt_flow.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/net/bnxt/bnxt_flow.c +0 -8
index 5af571448..76e9584da 100644
@@ -177,14 +177,6 @@ bnxt_validate_and_parse_flow_type(struct bnxt *bp,
 			return -rte_errno;
 		}
 
-		if (!item->spec || !item->mask) {
-			rte_flow_error_set(error, EINVAL,
-					   RTE_FLOW_ERROR_TYPE_ITEM,
-					   item,
-					   "spec/mask is NULL");
-			return -rte_errno;
-		}
-
 		switch (item->type) {
 		case RTE_FLOW_ITEM_TYPE_ANY:
 			inner =
Signature · 1 line
2.21.0 (Apple Git-122.2)
#0 lore raw

PATCH 1/2 doc: update bnxt feature list

Updating bnxt.ini file.

---
 doc/guides/nics/features/bnxt.ini | 3 +++
 1 file changed, 3 insertions(+)
doc/guides/nics/features/bnxt.ini +3 -0
index 9721dd61d..37a99e336 100644
@@ -11,6 +11,7 @@ Rx interrupt         = Y
 Queue start/stop     = Y
 MTU update           = Y
 Jumbo frame          = Y
+Scattered Rx         = Y
 LRO                  = Y
 TSO                  = Y
 Promiscuous mode     = Y
@@ -37,9 +38,11 @@ Rx descriptor status = Y
 Tx descriptor status = Y
 Basic stats          = Y
 Extended stats       = Y
+Stats per queue      = Y
 FW version           = Y
 EEPROM dump          = Y
 LED                  = Y
+Multiprocess aware   = Y
 Linux UIO            = Y
 Linux VFIO           = Y
 ARMv8                = Y
Signature · 1 line
2.21.0 (Apple Git-122.2)
#2 lore raw

Re: [dpdk-dev] [PATCH 2/2] net/bnxt: fix check for null spec and mask

In reply to Ajit Khaparde
Quoted 5 lines · Ajit Khaparde

bnxt_validate_and_parse_flow_type already has protocol specific NULL checks for rte_flow_item spec and mask and take actions accordingly. A check at the top of the loop is redundant and is preventing the protocol specific checks from being executed.

Quoted 7 lines
Fixes b7e01f386059 ("net/bnxt: handle cleanup if flow creation fails")
Reviewed-by Santoshkumar Karanappa Rastapur <

[email protected]>

Patch applied to dpdk-next-net-brcm.

Quoted 27 lines
---
 drivers/net/bnxt/bnxt_flow.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/net/bnxt/bnxt_flow.c +0 -9
index 5af571448..76e9584da 100644
@@ -177,14 +177,6 @@ bnxt_validate_and_parse_flow_type(struct bnxt *bp,
                        return -rte_errno;
                }
 
-               if (!item->spec || !item->mask) {
-                       rte_flow_error_set(error, EINVAL,
-                                          RTE_FLOW_ERROR_TYPE_ITEM,
-                                          item,
-                                          "spec/mask is NULL");
-                       return -rte_errno;
-               }
-
                switch (item->type) {
                case RTE_FLOW_ITEM_TYPE_ANY:
                        inner =
--

2.21.0 (Apple Git-122.2)

#3 lore raw
In reply to Ajit Khaparde
Quoted 4 lines · Ajit Khaparde

Updating bnxt.ini file.

Patch applied to dpdk-next-net-brcm.

Quoted 33 lines
---
 doc/guides/nics/features/bnxt.ini | 3 +++
 1 file changed, 3 insertions(+)
doc/guides/nics/features/bnxt.ini +3 -1
index 9721dd61d..37a99e336 100644
@@ -11,6 +11,7 @@ Rx interrupt         = Y
 Queue start/stop     = Y
 MTU update           = Y
 Jumbo frame          = Y
+Scattered Rx         = Y
 LRO                  = Y
 TSO                  = Y
 Promiscuous mode     = Y
@@ -37,9 +38,11 @@ Rx descriptor status = Y
 Tx descriptor status = Y
 Basic stats          = Y
 Extended stats       = Y
+Stats per queue      = Y
 FW version           = Y
 EEPROM dump          = Y
 LED                  = Y
+Multiprocess aware   = Y
 Linux UIO            = Y
 Linux VFIO           = Y
 ARMv8                = Y
--

2.21.0 (Apple Git-122.2)

#4 lore raw
In reply to Ajit Khaparde
Quoted 22 lines · Ajit Khaparde

Updating bnxt.ini file.

---
 doc/guides/nics/features/bnxt.ini | 3 +++
 1 file changed, 3 insertions(+)
doc/guides/nics/features/bnxt.ini +1 -0
index 9721dd61d..37a99e336 100644
@@ -11,6 +11,7 @@ Rx interrupt         = Y
 Queue start/stop     = Y
 MTU update           = Y
 Jumbo frame          = Y
+Scattered Rx         = Y
 LRO                  = Y
 TSO                  = Y
 Promiscuous mode     = Y
@@ -37,9 +38,11 @@ Rx descriptor status = Y
 Tx descriptor status = Y

doc/guides/nics/features/bnxt.ini Rx descriptor status = Y · line 48

Quoted 10 lines
doc/guides/nics/features/bnxt.ini +2 -0
 Basic stats          = Y
 Extended stats       = Y
+Stats per queue      = Y
 FW version           = Y
 EEPROM dump          = Y
 LED                  = Y
+Multiprocess aware   = Y
 Linux UIO            = Y
 Linux VFIO           = Y
 ARMv8                = Y

Are these features added in this release or adding the missed features? If adding missed features can you please add the fixes tags for backtrace? And if new features can you please put the commit providing these features for reference?

Thanks.

#5 lore raw
Quoted 28 lines · Ferruh Yigit

Review

Quoted 8 lines · Ajit Khaparde

Updating bnxt.ini file.

---
 doc/guides/nics/features/bnxt.ini | 3 +++
 1 file changed, 3 insertions(+)
(quoted diff) +0 -0

b/doc/guides/nics/features/bnxt.ini

Quoted 18 lines

index 9721dd61d..37a99e336 100644

doc/guides/nics/features/bnxt.ini +2 -0
@@ -11,6 +11,7 @@ Rx interrupt         = Y
 Queue start/stop     = Y
 MTU update           = Y
 Jumbo frame          = Y
+Scattered Rx         = Y
 LRO                  = Y
 TSO                  = Y
 Promiscuous mode     = Y
@@ -37,9 +38,11 @@ Rx descriptor status = Y
 Tx descriptor status = Y
 Basic stats          = Y
 Extended stats       = Y
+Stats per queue      = Y
 FW version           = Y
 EEPROM dump          = Y
Quoted 8 lines

doc/guides/nics/features/bnxt.ini Rx descriptor status = Y · line 48

Quoted 6 lines
doc/guides/nics/features/bnxt.ini +1 -0
 LED                  = Y
+Multiprocess aware   = Y
 Linux UIO            = Y
 Linux VFIO           = Y
 ARMv8                = Y

Are these features added in this release or adding the missed features?

Yes. Catching up on that. We missed updating this when the feature patches went in.

Quoted 6 lines

If
adding missed features can you please add the fixes tags for backtrace? And if new features can you please put the commit providing these features for
reference?

Will do.

Quoted 3 lines

Thanks.