From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: [PATCH v3 1/6] ethdev: fix port id storage Date: Wed, 17 Jan 2018 21:57:57 +0000 Message-ID: <20180117215802.90809-1-ferruh.yigit@intel.com> References: <20180109162317.18183-1-ferruh.yigit@intel.com> Cc: dev@dpdk.org, Ferruh Yigit , stable@dpdk.org, declan.doherty@intel.com, Boris Pismenny , Aviad Yehezkel , Radu Nicolau To: Thomas Monjalon Return-path: In-Reply-To: <20180109162317.18183-1-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" port_id is now 16bits, update function parameter according. Fixes: 4c270218aa26 ("ethdev: support security APIs") Cc: stable@dpdk.org Cc: declan.doherty@intel.com Signed-off-by: Ferruh Yigit Acked-by: Hemant Agrawal --- Cc: Boris Pismenny Cc: Aviad Yehezkel Cc: Radu Nicolau Cc: Declan Doherty --- 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 b3495992d..779853d02 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -277,7 +277,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 a5ba56412..e4927029d 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1722,7 +1722,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