[dpdk-dev] [PATCH v2 1/6] ethdev: fix port id storage

Ferruh Yigit ferruh.yigit at intel.com
Tue Jan 9 17:23:12 CET 2018


port_id is now 16bits, update function parameter according.

Fixes: 4c270218aa26 ("ethdev: support security APIs")
Cc: stable at dpdk.org
Cc: declan.doherty at intel.com

Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
Cc: Boris Pismenny <borisp at mellanox.com>
Cc: Aviad Yehezkel <aviadye at mellanox.com>
Cc: Radu Nicolau <radu.nicolau at intel.com>
Cc: Declan Doherty <declan.doherty at intel.com>
---
 lib/librte_ether/rte_ethdev.c | 2 +-
 lib/librte_ether/rte_ethdev.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 394aa26a5..a8c484468 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -273,7 +273,7 @@ rte_eth_dev_socket_id(uint16_t port_id)
 }
 
 void *
-rte_eth_dev_get_sec_ctx(uint8_t port_id)
+rte_eth_dev_get_sec_ctx(uint16_t port_id)
 {
 	RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, NULL);
 	return rte_eth_devices[port_id].security_ctx;
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h
index 77fb69167..cce1a47d2 100644
--- a/lib/librte_ether/rte_ethdev.h
+++ b/lib/librte_ether/rte_ethdev.h
@@ -1719,7 +1719,7 @@ struct rte_eth_dev {
 } __rte_cache_aligned;
 
 void *
-rte_eth_dev_get_sec_ctx(uint8_t port_id);
+rte_eth_dev_get_sec_ctx(uint16_t port_id);
 
 struct rte_eth_dev_sriov {
 	uint8_t active;               /**< SRIOV is active with 16, 32 or 64 pools */
-- 
2.14.3



More information about the dev mailing list