From: Ferruh Yigit Date: Tue, 25 Aug 2020 17:51:06 +0000 (+0100) Subject: net/dpaa: fix port ID type in API X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ae8f4cf3283e4036b56709cee74ddfa386de5f6b;p=dpdk.git net/dpaa: fix port ID type in API Updating the type for 'port' variable from 'uint8_t' to 'uint16_t'. Fixes: 8c3495f5d2dd ("net/dpaa: support loopback API") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit Acked-by: Hemant Agrawal --- diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 09646b29fb..5f568f4b72 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -193,9 +193,6 @@ Deprecation Notices following the IPv6 header, as proposed in RFC https://mails.dpdk.org/archives/dev/2020-August/177257.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 a077b98c3e..8a6b19b5ce 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -1473,7 +1473,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_ */