From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 8080E5B3E; Fri, 9 Mar 2018 12:27:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Mar 2018 03:27:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,445,1515484800"; d="scan'208";a="32564229" Received: from silpixa00399777.ir.intel.com (HELO silpixa00399777.ger.corp.intel.com) ([10.237.222.236]) by FMSMGA003.fm.intel.com with ESMTP; 09 Mar 2018 03:27:55 -0800 From: Ferruh Yigit To: Neil Horman , John McNamara , Marko Kovacevic , Thomas Monjalon Cc: dev@dpdk.org, Ferruh Yigit , stable@dpdk.org, declan.doherty@intel.com, Boris Pismenny , Aviad Yehezkel , Radu Nicolau Date: Fri, 9 Mar 2018 11:27:48 +0000 Message-Id: <20180309112748.292704-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180117215802.90809-1-ferruh.yigit@intel.com> References: <20180117215802.90809-1-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH v4] ethdev: fix port id storage X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2018 11:27:59 -0000 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 v4: * Remove deprecation notice. LIBABIVER already incread in this release. --- doc/guides/rel_notes/deprecation.rst | 4 ---- lib/librte_ether/rte_ethdev.c | 2 +- lib/librte_ether/rte_ethdev.h | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 659458587..ad54de721 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -149,10 +149,6 @@ Deprecation Notices as parameter. For consistency functions adding callback will return ``struct rte_eth_rxtx_callback \*`` instead of ``void \*``. -* ethdev: ``rte_eth_dev_get_sec_ctx()`` fix port id storage - ``rte_eth_dev_get_sec_ctx()`` is using ``uint8_t`` for ``port_id``, - which should be ``uint16_t``. - * i40e: The default flexible payload configuration which extracts the first 16 bytes of the payload for RSS will be deprecated starting from 18.02. If required the previous behavior can be configured using existing flow diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 6d6874903..86bce0872 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -520,7 +520,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 036153306..213fe27e1 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -3530,7 +3530,7 @@ rte_eth_dev_pool_ops_supported(uint16_t port_id, const char *pool); * - pointer to security context on success. */ void * -rte_eth_dev_get_sec_ctx(uint8_t port_id); +rte_eth_dev_get_sec_ctx(uint16_t port_id); #include -- 2.13.6