[dpdk-stable] [PATCH v2] net/dpaa: fix public API port ID type
Ferruh Yigit
ferruh.yigit at intel.com
Tue Aug 25 19:51:06 CEST 2020
Updating the type for 'port' variable from 'uint8_t' to 'uint16_t'.
Fixes: 8c3495f5d2dd ("net/dpaa: support loopback API")
Cc: stable at dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
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(-)
diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index 345c38d5b6..249d4c50a1 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -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.
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
index c15e2b5462..e84f904071 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -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;
diff --git a/drivers/net/dpaa/rte_pmd_dpaa.h b/drivers/net/dpaa/rte_pmd_dpaa.h
index 8d244bb491..ec45633ba2 100644
--- a/drivers/net/dpaa/rte_pmd_dpaa.h
+++ b/drivers/net/dpaa/rte_pmd_dpaa.h
@@ -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
More information about the stable
mailing list