ethdev: fix device capability to string translation
PATCH 1/1 ethdev: fix device capability to string translation
Add support for RTE_ETH_DEV_CAPA_FLOW_{RULE,SHARED_OBJECT}_KEEP to rte_eth_dev_capability_name(), missed when adding the capabilities.
---P.S. I don't know a good way to catch such errors in the future
except by a unit test, but adding a new suite for ethdev seems worthy of its own patch (if needed at all).
lib/ethdev/rte_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)
lib/ethdev/rte_ethdev.c +2 -0
@@ -171,6 +171,8 @@ static const struct { {RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP, "RUNTIME_RX_QUEUE_SETUP"}, {RTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP, "RUNTIME_TX_QUEUE_SETUP"}, {RTE_ETH_DEV_CAPA_RXQ_SHARE, "RXQ_SHARE"}, + {RTE_ETH_DEV_CAPA_FLOW_RULE_KEEP, "FLOW_RULE_KEEP"}, + {RTE_ETH_DEV_CAPA_FLOW_SHARED_OBJECT_KEEP, "FLOW_SHARED_OBJECT_KEEP"}, };/**
Signature · 1 line
2.25.1
Quoted 17 lines
-----Original Message-----
From: Dmitry Kozlyuk <[email protected]>
Sent: Tuesday, November 9, 2021 11:01 AM
To: [email protected]
Cc: Ali Alnubani <[email protected]>; Xueming(Steven) Li <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [PATCH] ethdev: fix device capability to string translationAdd support for RTE_ETH_DEV_CAPA_FLOW_{RULE,SHARED_OBJECT}_KEEP to
rte_eth_dev_capability_name(), missed when adding the capabilities.Fixes 1d5a3d68c0f9 ("ethdev: add capability to keep flow rules on restart")Fixes 2c9cd45de7e6 ("ethdev: add capability to keep shared objects onrestart")
Quoted 8 lines
Reported-by Ali Alnubani <[email protected]>Signed-off-by Dmitry Kozlyuk <[email protected]>Acked-by Xueming Li <[email protected]>---
P.S. I don't know a good way to catch such errors in the future
except by a unit test, but adding a new suite for ethdev seems worthy of its own patch (if needed at all).
Thanks,
Ali
Quoted 17 lines · Ali Alnubani
Quoted 17 lines
-----Original Message-----
From: Dmitry Kozlyuk <[email protected]>
Sent: Tuesday, November 9, 2021 11:01 AM
To: [email protected]
Cc: Ali Alnubani <[email protected]>; Xueming(Steven) Li <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Ferruh Yigit <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: [PATCH] ethdev: fix device capability to string translationAdd support for RTE_ETH_DEV_CAPA_FLOW_{RULE,SHARED_OBJECT}_KEEP to
rte_eth_dev_capability_name(), missed when adding the capabilities.Fixes 1d5a3d68c0f9 ("ethdev: add capability to keep flow rules on restart")Fixes 2c9cd45de7e6 ("ethdev: add capability to keep shared objects onrestart")
Quoted 6 lines
Quoted 3 lines
Reported-by Ali Alnubani <[email protected]>Signed-off-by Dmitry Kozlyuk <[email protected]>Acked-by Xueming Li <[email protected]>Tested-by Ali Alnubani <[email protected]>
Applied to dpdk-next-net/main, thanks.