ethdev: fix port id storage
port_id is now 16bits, update function parameter according.
Fixes: 4c270218aa
("ethdev: support security APIs")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
parent
a6fae8f906
commit
11c5d3411f
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 <rte_ethdev_core.h>
|
||||
|
Loading…
Reference in New Issue
Block a user