net/dpaa: fix public API port ID type
PATCH 1/1 net/dpaa: fix public API port ID type
---
Hi Hemant,
Can you please send a deprecation notice to be able to fix in 20.11?
btw, is this API still used, if it is not used should it be deprecated?
--- drivers/net/dpaa/rte_pmd_dpaa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dpaa/rte_pmd_dpaa.h +1 -1
@@ -31,6 +31,6 @@* - (-EINVAL) if bad parameter. */ int -rte_pmd_dpaa_set_tx_loopback (uint8_t port,uint8_t on); +rte_pmd_dpaa_set_tx_loopback (uint16_t port,uint8_t on);#endif /* _PMD_DPAA_H_ */
Signature · 1 line
2.25.4
PATCH v2 1/1 net/dpaa: fix public API port ID type
Updating the type for 'port' variable from 'uint8_t' to 'uint16_t'.
---
v2:
* Remove deprecation notice
--- doc/guides/rel_notes/deprecation.rst | 3 --- drivers/net/dpaa/dpaa_ethdev.c | 2 +- drivers/net/dpaa/rte_pmd_dpaa.h | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-)
doc/guides/rel_notes/deprecation.rst +0 -3
@@ -254,9 +254,6 @@ Deprecation Notices experimental in v20.11 DPDK release. For more details, please see `the thread <https://mails.dpdk.org/archives/dev/2020-April/164970.html>`_. -* pmd_dpaa: The API ``rte_pmd_dpaa_set_tx_loopback`` will have extended - ``port_id`` definition from ``uint8_t`` to ``uint16_t``. - * vhost: Vhost-user dequeue zero-copy support will be removed in 20.11. The only known user is OVS where the feature is still experimental, and has not received any update for 2.5 years.
drivers/net/dpaa/dpaa_ethdev.c +1 -1
@@ -1354,7 +1354,7 @@ is_dpaa_supported(struct rte_eth_dev *dev) }int -rte_pmd_dpaa_set_tx_loopback (uint8_t port,uint8_t on) +rte_pmd_dpaa_set_tx_loopback (uint16_t port,uint8_t on) {struct rte_eth_dev *dev;
drivers/net/dpaa/rte_pmd_dpaa.h +1 -1
@@ -29,6 +29,6 @@* - (-EINVAL) if bad parameter. */ int -rte_pmd_dpaa_set_tx_loopback (uint8_t port,uint8_t on); +rte_pmd_dpaa_set_tx_loopback (uint16_t port,uint8_t on);#endif /* _PMD_DPAA_H_ */
Signature · 1 line
2.25.4
Quoted 74 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Tuesday, August 25, 2020 11:21 PM
To: [email protected]; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; John McNamara <[email protected]>; Marko Kovacevic <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>
Cc: Ferruh Yigit <[email protected]>; [email protected]
Subject: [PATCH v2] net/dpaa: fix public API port ID typeUpdating the type for 'port' variable from '
uint8_t' to 'uint16_t'.Fixes 8c3495f5d2dd ("net/dpaa: support loopback API")Signed-off-by Ferruh Yigit <[email protected]>---
v2:
* Remove deprecation notice--- doc/guides/rel_notes/deprecation.rst | 3 --- drivers/net/dpaa/dpaa_ethdev.c | 2 +- drivers/net/dpaa/rte_pmd_dpaa.h | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-)doc/guides/rel_notes/deprecation.rst +0
-0@@ -254,9 +254,6 @@ Deprecation Notices experimental in v20.11 DPDK release. For more details, please see `thethread
<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail
s.dpdk.org%2Farchives%2Fdev%2F2020- April%2F164970.html&data=02%7C01%7Chemant.agrawal%40nxp.com %7C7277661bfed84b6efd8e08d8491f754a%7C686ea1d3bc2b4c6fa92cd99c5c3 01635%7C0%7C0%7C637339746748499018&sdata=zhi6GXeFItNrWhst3L1 TTOPqTG47kthyyYHBe8Sn7Mw%3D&reserved=0>`_.-*
pmd_dpaa: The API ``rte_pmd_dpaa_set_tx_loopback`` will have extendeddoc/guides/rel_notes/deprecation.rst +0
-2- ``port_id`` definition from ``uint8_t`` to ``uint16_t``. - * vhost: Vhost-user dequeue zero-copy support will be removed in 20.11. The only known user is OVS where the feature is still experimental, and has not received any update for 2.5 years.(quoted diff) +0
-0
b/drivers/net/dpaa/dpaa_ethdev.cindexc15e2b5462..e84f904071100644drivers/net/dpaa/dpaa_ethdev.c +1
-1@@ -1354,7 +1354,7 @@ is_dpaa_supported(struct rte_eth_dev *dev) }int -rte_pmd_dpaa_set_tx_loopback (uint8_t port,uint8_t on) +rte_pmd_dpaa_set_tx_loopback (uint16_t port,uint8_t on) {struct rte_eth_dev *dev;(quoted diff) +0
-0
b/drivers/net/dpaa/rte_pmd_dpaa.hindex8d244bb491..ec45633ba2100644drivers/net/dpaa/rte_pmd_dpaa.h +1
-2@@ -29,6 +29,6 @@* - (-EINVAL) if bad parameter. */ int -rte_pmd_dpaa_set_tx_loopback (uint8_t port,uint8_t on); +rte_pmd_dpaa_set_tx_loopback (uint16_t port,uint8_t on);#endif /* _PMD_DPAA_H_ */ --2.25.4
Ferruh Yigit
AppliedQuoted 10 lines · Hemant Agrawal
Quoted 10 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Tuesday, August 25, 2020 11:21 PM
To: [email protected]; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>; John McNamara <[email protected]>; Marko Kovacevic <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>
Cc: Ferruh Yigit <[email protected]>; [email protected]
Subject: [PATCH v2] net/dpaa: fix public API port ID type
Quoted 9 lines
Quoted 6 lines
Updating the type for 'port' variable from '
uint8_t' to 'uint16_t'.Fixes 8c3495f5d2dd ("net/dpaa: support loopback API")Signed-off-by Ferruh Yigit <[email protected]>Acked-by Hemant Agrawal <[email protected]>
Applied to dpdk-next-net/main, thanks.