git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: increase port id range
[dpdk.git]
/
lib
/
librte_ether
/
rte_ethdev.c
diff --git
a/lib/librte_ether/rte_ethdev.c
b/lib/librte_ether/rte_ethdev.c
index
bf665e0
..
7d0501b
100644
(file)
--- a/
lib/librte_ether/rte_ethdev.c
+++ b/
lib/librte_ether/rte_ethdev.c
@@
-139,8
+139,8
@@
enum {
STAT_QMAP_RX
};
STAT_QMAP_RX
};
-uint
8
_t
-rte_eth_find_next(uint
8
_t port_id)
+uint
16
_t
+rte_eth_find_next(uint
16
_t port_id)
{
while (port_id < RTE_MAX_ETHPORTS &&
rte_eth_devices[port_id].state != RTE_ETH_DEV_ATTACHED)
{
while (port_id < RTE_MAX_ETHPORTS &&
rte_eth_devices[port_id].state != RTE_ETH_DEV_ATTACHED)
@@
-188,7
+188,7
@@
rte_eth_dev_allocated(const char *name)
return NULL;
}
return NULL;
}
-static uint
8
_t
+static uint
16
_t
rte_eth_dev_find_free_port(void)
{
unsigned i;
rte_eth_dev_find_free_port(void)
{
unsigned i;
@@
-201,7
+201,7
@@
rte_eth_dev_find_free_port(void)
}
static struct rte_eth_dev *
}
static struct rte_eth_dev *
-eth_dev_get(uint
8
_t port_id)
+eth_dev_get(uint
16
_t port_id)
{
struct rte_eth_dev *eth_dev = &rte_eth_devices[port_id];
{
struct rte_eth_dev *eth_dev = &rte_eth_devices[port_id];
@@
-217,7
+217,7
@@
eth_dev_get(uint8_t port_id)
struct rte_eth_dev *
rte_eth_dev_allocate(const char *name)
{
struct rte_eth_dev *
rte_eth_dev_allocate(const char *name)
{
- uint
8
_t port_id;
+ uint
16
_t port_id;
struct rte_eth_dev *eth_dev;
port_id = rte_eth_dev_find_free_port();
struct rte_eth_dev *eth_dev;
port_id = rte_eth_dev_find_free_port();
@@
-252,7
+252,7
@@
rte_eth_dev_allocate(const char *name)
struct rte_eth_dev *
rte_eth_dev_attach_secondary(const char *name)
{
struct rte_eth_dev *
rte_eth_dev_attach_secondary(const char *name)
{
- uint
8
_t i;
+ uint
16
_t i;
struct rte_eth_dev *eth_dev;
if (rte_eth_dev_data == NULL)
struct rte_eth_dev *eth_dev;
if (rte_eth_dev_data == NULL)
@@
-286,7
+286,7
@@
rte_eth_dev_release_port(struct rte_eth_dev *eth_dev)
}
int
}
int
-rte_eth_dev_is_valid_port(uint
8
_t port_id)
+rte_eth_dev_is_valid_port(uint
16
_t port_id)
{
if (port_id >= RTE_MAX_ETHPORTS ||
(rte_eth_devices[port_id].state != RTE_ETH_DEV_ATTACHED &&
{
if (port_id >= RTE_MAX_ETHPORTS ||
(rte_eth_devices[port_id].state != RTE_ETH_DEV_ATTACHED &&
@@
-297,17
+297,17
@@
rte_eth_dev_is_valid_port(uint8_t port_id)
}
int
}
int
-rte_eth_dev_socket_id(uint
8
_t port_id)
+rte_eth_dev_socket_id(uint
16
_t port_id)
{
RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -1);
return rte_eth_devices[port_id].data->numa_node;
}
{
RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -1);
return rte_eth_devices[port_id].data->numa_node;
}
-uint
8
_t
+uint
16
_t
rte_eth_dev_count(void)
{
rte_eth_dev_count(void)
{
- uint
8
_t p;
- uint
8
_t count;
+ uint
16
_t p;
+ uint
16
_t count;
count = 0;
count = 0;
@@
-318,7
+318,7
@@
rte_eth_dev_count(void)
}
int
}
int
-rte_eth_dev_get_name_by_port(uint
8
_t port_id, char *name)
+rte_eth_dev_get_name_by_port(uint
16
_t port_id, char *name)
{
const char *tmp;
{
const char *tmp;
@@
-337,7
+337,7
@@
rte_eth_dev_get_name_by_port(uint8_t port_id, char *name)
}
int
}
int
-rte_eth_dev_get_port_by_name(const char *name, uint
8
_t *port_id)
+rte_eth_dev_get_port_by_name(const char *name, uint
16
_t *port_id)
{
int ret;
int i;
{
int ret;
int i;
@@
-362,7
+362,7
@@
rte_eth_dev_get_port_by_name(const char *name, uint8_t *port_id)
}
static int
}
static int
-rte_eth_dev_is_detachable(uint
8
_t port_id)
+rte_eth_dev_is_detachable(uint
16
_t port_id)
{
uint32_t dev_flags;
{
uint32_t dev_flags;
@@
-378,7
+378,7
@@
rte_eth_dev_is_detachable(uint8_t port_id)
/* attach the new device, then store port_id of the device */
int
/* attach the new device, then store port_id of the device */
int
-rte_eth_dev_attach(const char *devargs, uint
8
_t *port_id)
+rte_eth_dev_attach(const char *devargs, uint
16
_t *port_id)
{
int ret = -1;
int current = rte_eth_dev_count();
{
int ret = -1;
int current = rte_eth_dev_count();
@@
-424,7
+424,7
@@
err:
/* detach the device, then store the name of the device */
int
/* detach the device, then store the name of the device */
int
-rte_eth_dev_detach(uint
8
_t port_id, char *name)
+rte_eth_dev_detach(uint
16
_t port_id, char *name)
{
int ret = -1;
{
int ret = -1;
@@
-502,7
+502,7
@@
rte_eth_dev_rx_queue_config(struct rte_eth_dev *dev, uint16_t nb_queues)
}
int
}
int
-rte_eth_dev_rx_queue_start(uint
8
_t port_id, uint16_t rx_queue_id)
+rte_eth_dev_rx_queue_start(uint
16
_t port_id, uint16_t rx_queue_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-528,7
+528,7
@@
rte_eth_dev_rx_queue_start(uint8_t port_id, uint16_t rx_queue_id)
}
int
}
int
-rte_eth_dev_rx_queue_stop(uint
8
_t port_id, uint16_t rx_queue_id)
+rte_eth_dev_rx_queue_stop(uint
16
_t port_id, uint16_t rx_queue_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-554,7
+554,7
@@
rte_eth_dev_rx_queue_stop(uint8_t port_id, uint16_t rx_queue_id)
}
int
}
int
-rte_eth_dev_tx_queue_start(uint
8
_t port_id, uint16_t tx_queue_id)
+rte_eth_dev_tx_queue_start(uint
16
_t port_id, uint16_t tx_queue_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-580,7
+580,7
@@
rte_eth_dev_tx_queue_start(uint8_t port_id, uint16_t tx_queue_id)
}
int
}
int
-rte_eth_dev_tx_queue_stop(uint
8
_t port_id, uint16_t tx_queue_id)
+rte_eth_dev_tx_queue_stop(uint
16
_t port_id, uint16_t tx_queue_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-766,7
+766,7
@@
rte_eth_convert_rx_offloads(const uint64_t rx_offloads,
}
int
}
int
-rte_eth_dev_configure(uint
8
_t port_id, uint16_t nb_rx_q, uint16_t nb_tx_q,
+rte_eth_dev_configure(uint
16
_t port_id, uint16_t nb_rx_q, uint16_t nb_tx_q,
const struct rte_eth_conf *dev_conf)
{
struct rte_eth_dev *dev;
const struct rte_eth_conf *dev_conf)
{
struct rte_eth_dev *dev;
@@
-940,7
+940,7
@@
_rte_eth_dev_reset(struct rte_eth_dev *dev)
}
static void
}
static void
-rte_eth_dev_config_restore(uint
8
_t port_id)
+rte_eth_dev_config_restore(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
struct rte_eth_dev_info dev_info;
{
struct rte_eth_dev *dev;
struct rte_eth_dev_info dev_info;
@@
-995,7
+995,7
@@
rte_eth_dev_config_restore(uint8_t port_id)
}
int
}
int
-rte_eth_dev_start(uint
8
_t port_id)
+rte_eth_dev_start(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
int diag;
{
struct rte_eth_dev *dev;
int diag;
@@
-1007,7
+1007,7
@@
rte_eth_dev_start(uint8_t port_id)
RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->dev_start, -ENOTSUP);
if (dev->data->dev_started != 0) {
RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->dev_start, -ENOTSUP);
if (dev->data->dev_started != 0) {
- RTE_PMD_DEBUG_TRACE("Device with port_id=%" PRIu
8
+ RTE_PMD_DEBUG_TRACE("Device with port_id=%" PRIu
16
" already started\n",
port_id);
return 0;
" already started\n",
port_id);
return 0;
@@
-1029,7
+1029,7
@@
rte_eth_dev_start(uint8_t port_id)
}
void
}
void
-rte_eth_dev_stop(uint
8
_t port_id)
+rte_eth_dev_stop(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1039,7
+1039,7
@@
rte_eth_dev_stop(uint8_t port_id)
RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_stop);
if (dev->data->dev_started == 0) {
RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_stop);
if (dev->data->dev_started == 0) {
- RTE_PMD_DEBUG_TRACE("Device with port_id=%" PRIu
8
+ RTE_PMD_DEBUG_TRACE("Device with port_id=%" PRIu
16
" already stopped\n",
port_id);
return;
" already stopped\n",
port_id);
return;
@@
-1050,7
+1050,7
@@
rte_eth_dev_stop(uint8_t port_id)
}
int
}
int
-rte_eth_dev_set_link_up(uint
8
_t port_id)
+rte_eth_dev_set_link_up(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1063,7
+1063,7
@@
rte_eth_dev_set_link_up(uint8_t port_id)
}
int
}
int
-rte_eth_dev_set_link_down(uint
8
_t port_id)
+rte_eth_dev_set_link_down(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1076,7
+1076,7
@@
rte_eth_dev_set_link_down(uint8_t port_id)
}
void
}
void
-rte_eth_dev_close(uint
8
_t port_id)
+rte_eth_dev_close(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1096,7
+1096,7
@@
rte_eth_dev_close(uint8_t port_id)
}
int
}
int
-rte_eth_dev_reset(uint
8
_t port_id)
+rte_eth_dev_reset(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
int ret;
{
struct rte_eth_dev *dev;
int ret;
@@
-1113,7
+1113,7
@@
rte_eth_dev_reset(uint8_t port_id)
}
int
}
int
-rte_eth_rx_queue_setup(uint
8
_t port_id, uint16_t rx_queue_id,
+rte_eth_rx_queue_setup(uint
16
_t port_id, uint16_t rx_queue_id,
uint16_t nb_rx_desc, unsigned int socket_id,
const struct rte_eth_rxconf *rx_conf,
struct rte_mempool *mp)
uint16_t nb_rx_desc, unsigned int socket_id,
const struct rte_eth_rxconf *rx_conf,
struct rte_mempool *mp)
@@
-1264,7
+1264,7
@@
rte_eth_convert_txq_offloads(const uint64_t tx_offloads, uint32_t *txq_flags)
}
int
}
int
-rte_eth_tx_queue_setup(uint
8
_t port_id, uint16_t tx_queue_id,
+rte_eth_tx_queue_setup(uint
16
_t port_id, uint16_t tx_queue_id,
uint16_t nb_tx_desc, unsigned int socket_id,
const struct rte_eth_txconf *tx_conf)
{
uint16_t nb_tx_desc, unsigned int socket_id,
const struct rte_eth_txconf *tx_conf)
{
@@
-1384,7
+1384,7
@@
rte_eth_tx_buffer_init(struct rte_eth_dev_tx_buffer *buffer, uint16_t size)
}
int
}
int
-rte_eth_tx_done_cleanup(uint
8
_t port_id, uint16_t queue_id, uint32_t free_cnt)
+rte_eth_tx_done_cleanup(uint
16
_t port_id, uint16_t queue_id, uint32_t free_cnt)
{
struct rte_eth_dev *dev = &rte_eth_devices[port_id];
{
struct rte_eth_dev *dev = &rte_eth_devices[port_id];
@@
-1398,7
+1398,7
@@
rte_eth_tx_done_cleanup(uint8_t port_id, uint16_t queue_id, uint32_t free_cnt)
}
void
}
void
-rte_eth_promiscuous_enable(uint
8
_t port_id)
+rte_eth_promiscuous_enable(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1411,7
+1411,7
@@
rte_eth_promiscuous_enable(uint8_t port_id)
}
void
}
void
-rte_eth_promiscuous_disable(uint
8
_t port_id)
+rte_eth_promiscuous_disable(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1424,7
+1424,7
@@
rte_eth_promiscuous_disable(uint8_t port_id)
}
int
}
int
-rte_eth_promiscuous_get(uint
8
_t port_id)
+rte_eth_promiscuous_get(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1435,7
+1435,7
@@
rte_eth_promiscuous_get(uint8_t port_id)
}
void
}
void
-rte_eth_allmulticast_enable(uint
8
_t port_id)
+rte_eth_allmulticast_enable(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1448,7
+1448,7
@@
rte_eth_allmulticast_enable(uint8_t port_id)
}
void
}
void
-rte_eth_allmulticast_disable(uint
8
_t port_id)
+rte_eth_allmulticast_disable(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1461,7
+1461,7
@@
rte_eth_allmulticast_disable(uint8_t port_id)
}
int
}
int
-rte_eth_allmulticast_get(uint
8
_t port_id)
+rte_eth_allmulticast_get(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1486,7
+1486,7
@@
rte_eth_dev_atomic_read_link_status(struct rte_eth_dev *dev,
}
void
}
void
-rte_eth_link_get(uint
8
_t port_id, struct rte_eth_link *eth_link)
+rte_eth_link_get(uint
16
_t port_id, struct rte_eth_link *eth_link)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1503,7
+1503,7
@@
rte_eth_link_get(uint8_t port_id, struct rte_eth_link *eth_link)
}
void
}
void
-rte_eth_link_get_nowait(uint
8
_t port_id, struct rte_eth_link *eth_link)
+rte_eth_link_get_nowait(uint
16
_t port_id, struct rte_eth_link *eth_link)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1520,7
+1520,7
@@
rte_eth_link_get_nowait(uint8_t port_id, struct rte_eth_link *eth_link)
}
int
}
int
-rte_eth_stats_get(uint
8
_t port_id, struct rte_eth_stats *stats)
+rte_eth_stats_get(uint
16
_t port_id, struct rte_eth_stats *stats)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1536,7
+1536,7
@@
rte_eth_stats_get(uint8_t port_id, struct rte_eth_stats *stats)
}
void
}
void
-rte_eth_stats_reset(uint
8
_t port_id)
+rte_eth_stats_reset(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-1549,7
+1549,7
@@
rte_eth_stats_reset(uint8_t port_id)
}
static int
}
static int
-get_xstats_count(uint
8
_t port_id)
+get_xstats_count(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
int count;
{
struct rte_eth_dev *dev;
int count;
@@
-1578,7
+1578,7
@@
get_xstats_count(uint8_t port_id)
}
int
}
int
-rte_eth_xstats_get_id_by_name(uint
8
_t port_id, const char *xstat_name,
+rte_eth_xstats_get_id_by_name(uint
16
_t port_id, const char *xstat_name,
uint64_t *id)
{
int cnt_xstats, idx_xstat;
uint64_t *id)
{
int cnt_xstats, idx_xstat;
@@
-1622,7
+1622,7
@@
rte_eth_xstats_get_id_by_name(uint8_t port_id, const char *xstat_name,
}
int
}
int
-rte_eth_xstats_get_names_by_id(uint
8
_t port_id,
+rte_eth_xstats_get_names_by_id(uint
16
_t port_id,
struct rte_eth_xstat_name *xstats_names, unsigned int size,
uint64_t *ids)
{
struct rte_eth_xstat_name *xstats_names, unsigned int size,
uint64_t *ids)
{
@@
-1739,7
+1739,7
@@
rte_eth_xstats_get_names_by_id(uint8_t port_id,
}
int
}
int
-rte_eth_xstats_get_names(uint
8
_t port_id,
+rte_eth_xstats_get_names(uint
16
_t port_id,
struct rte_eth_xstat_name *xstats_names,
unsigned int size)
{
struct rte_eth_xstat_name *xstats_names,
unsigned int size)
{
@@
-1805,8
+1805,8
@@
rte_eth_xstats_get_names(uint8_t port_id,
/* retrieve ethdev extended statistics */
int
/* retrieve ethdev extended statistics */
int
-rte_eth_xstats_get_by_id(uint
8_t port_id, const uint64_t *ids, uint64_t *value
s,
- unsigned int n)
+rte_eth_xstats_get_by_id(uint
16_t port_id, const uint64_t *id
s,
+
uint64_t *values,
unsigned int n)
{
/* If need all xstats */
if (!ids) {
{
/* If need all xstats */
if (!ids) {
@@
-1931,7
+1931,7
@@
rte_eth_xstats_get_by_id(uint8_t port_id, const uint64_t *ids, uint64_t *values,
}
int
}
int
-rte_eth_xstats_get(uint
8
_t port_id, struct rte_eth_xstat *xstats,
+rte_eth_xstats_get(uint
16
_t port_id, struct rte_eth_xstat *xstats,
unsigned int n)
{
struct rte_eth_stats eth_stats;
unsigned int n)
{
struct rte_eth_stats eth_stats;
@@
-2013,7
+2013,7
@@
rte_eth_xstats_get(uint8_t port_id, struct rte_eth_xstat *xstats,
/* reset ethdev extended statistics */
void
/* reset ethdev extended statistics */
void
-rte_eth_xstats_reset(uint
8
_t port_id)
+rte_eth_xstats_reset(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2031,7
+2031,7
@@
rte_eth_xstats_reset(uint8_t port_id)
}
static int
}
static int
-set_queue_stats_mapping(uint
8
_t port_id, uint16_t queue_id, uint8_t stat_idx,
+set_queue_stats_mapping(uint
16
_t port_id, uint16_t queue_id, uint8_t stat_idx,
uint8_t is_rx)
{
struct rte_eth_dev *dev;
uint8_t is_rx)
{
struct rte_eth_dev *dev;
@@
-2047,7
+2047,7
@@
set_queue_stats_mapping(uint8_t port_id, uint16_t queue_id, uint8_t stat_idx,
int
int
-rte_eth_dev_set_tx_queue_stats_mapping(uint
8
_t port_id, uint16_t tx_queue_id,
+rte_eth_dev_set_tx_queue_stats_mapping(uint
16
_t port_id, uint16_t tx_queue_id,
uint8_t stat_idx)
{
return set_queue_stats_mapping(port_id, tx_queue_id, stat_idx,
uint8_t stat_idx)
{
return set_queue_stats_mapping(port_id, tx_queue_id, stat_idx,
@@
-2056,7
+2056,7
@@
rte_eth_dev_set_tx_queue_stats_mapping(uint8_t port_id, uint16_t tx_queue_id,
int
int
-rte_eth_dev_set_rx_queue_stats_mapping(uint
8
_t port_id, uint16_t rx_queue_id,
+rte_eth_dev_set_rx_queue_stats_mapping(uint
16
_t port_id, uint16_t rx_queue_id,
uint8_t stat_idx)
{
return set_queue_stats_mapping(port_id, rx_queue_id, stat_idx,
uint8_t stat_idx)
{
return set_queue_stats_mapping(port_id, rx_queue_id, stat_idx,
@@
-2064,7
+2064,7
@@
rte_eth_dev_set_rx_queue_stats_mapping(uint8_t port_id, uint16_t rx_queue_id,
}
int
}
int
-rte_eth_dev_fw_version_get(uint
8
_t port_id, char *fw_version, size_t fw_size)
+rte_eth_dev_fw_version_get(uint
16
_t port_id, char *fw_version, size_t fw_size)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2076,7
+2076,7
@@
rte_eth_dev_fw_version_get(uint8_t port_id, char *fw_version, size_t fw_size)
}
void
}
void
-rte_eth_dev_info_get(uint
8
_t port_id, struct rte_eth_dev_info *dev_info)
+rte_eth_dev_info_get(uint
16
_t port_id, struct rte_eth_dev_info *dev_info)
{
struct rte_eth_dev *dev;
const struct rte_eth_desc_lim lim = {
{
struct rte_eth_dev *dev;
const struct rte_eth_desc_lim lim = {
@@
-2100,7
+2100,7
@@
rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info)
}
int
}
int
-rte_eth_dev_get_supported_ptypes(uint
8
_t port_id, uint32_t ptype_mask,
+rte_eth_dev_get_supported_ptypes(uint
16
_t port_id, uint32_t ptype_mask,
uint32_t *ptypes, int num)
{
int i, j;
uint32_t *ptypes, int num)
{
int i, j;
@@
-2126,7
+2126,7
@@
rte_eth_dev_get_supported_ptypes(uint8_t port_id, uint32_t ptype_mask,
}
void
}
void
-rte_eth_macaddr_get(uint
8
_t port_id, struct ether_addr *mac_addr)
+rte_eth_macaddr_get(uint
16
_t port_id, struct ether_addr *mac_addr)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2137,7
+2137,7
@@
rte_eth_macaddr_get(uint8_t port_id, struct ether_addr *mac_addr)
int
int
-rte_eth_dev_get_mtu(uint
8
_t port_id, uint16_t *mtu)
+rte_eth_dev_get_mtu(uint
16
_t port_id, uint16_t *mtu)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2149,7
+2149,7
@@
rte_eth_dev_get_mtu(uint8_t port_id, uint16_t *mtu)
}
int
}
int
-rte_eth_dev_set_mtu(uint
8
_t port_id, uint16_t mtu)
+rte_eth_dev_set_mtu(uint
16
_t port_id, uint16_t mtu)
{
int ret;
struct rte_eth_dev *dev;
{
int ret;
struct rte_eth_dev *dev;
@@
-2166,7
+2166,7
@@
rte_eth_dev_set_mtu(uint8_t port_id, uint16_t mtu)
}
int
}
int
-rte_eth_dev_vlan_filter(uint
8
_t port_id, uint16_t vlan_id, int on)
+rte_eth_dev_vlan_filter(uint
16
_t port_id, uint16_t vlan_id, int on)
{
struct rte_eth_dev *dev;
int ret;
{
struct rte_eth_dev *dev;
int ret;
@@
-2206,7
+2206,8
@@
rte_eth_dev_vlan_filter(uint8_t port_id, uint16_t vlan_id, int on)
}
int
}
int
-rte_eth_dev_set_vlan_strip_on_queue(uint8_t port_id, uint16_t rx_queue_id, int on)
+rte_eth_dev_set_vlan_strip_on_queue(uint16_t port_id, uint16_t rx_queue_id,
+ int on)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2224,7
+2225,7
@@
rte_eth_dev_set_vlan_strip_on_queue(uint8_t port_id, uint16_t rx_queue_id, int o
}
int
}
int
-rte_eth_dev_set_vlan_ether_type(uint
8
_t port_id,
+rte_eth_dev_set_vlan_ether_type(uint
16
_t port_id,
enum rte_vlan_type vlan_type,
uint16_t tpid)
{
enum rte_vlan_type vlan_type,
uint16_t tpid)
{
@@
-2238,7
+2239,7
@@
rte_eth_dev_set_vlan_ether_type(uint8_t port_id,
}
int
}
int
-rte_eth_dev_set_vlan_offload(uint
8
_t port_id, int offload_mask)
+rte_eth_dev_set_vlan_offload(uint
16
_t port_id, int offload_mask)
{
struct rte_eth_dev *dev;
int ret = 0;
{
struct rte_eth_dev *dev;
int ret = 0;
@@
-2306,7
+2307,7
@@
rte_eth_dev_set_vlan_offload(uint8_t port_id, int offload_mask)
}
int
}
int
-rte_eth_dev_get_vlan_offload(uint
8
_t port_id)
+rte_eth_dev_get_vlan_offload(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
int ret = 0;
{
struct rte_eth_dev *dev;
int ret = 0;
@@
-2330,7
+2331,7
@@
rte_eth_dev_get_vlan_offload(uint8_t port_id)
}
int
}
int
-rte_eth_dev_set_vlan_pvid(uint
8
_t port_id, uint16_t pvid, int on)
+rte_eth_dev_set_vlan_pvid(uint
16
_t port_id, uint16_t pvid, int on)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2343,7
+2344,7
@@
rte_eth_dev_set_vlan_pvid(uint8_t port_id, uint16_t pvid, int on)
}
int
}
int
-rte_eth_dev_flow_ctrl_get(uint
8
_t port_id, struct rte_eth_fc_conf *fc_conf)
+rte_eth_dev_flow_ctrl_get(uint
16
_t port_id, struct rte_eth_fc_conf *fc_conf)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2355,7
+2356,7
@@
rte_eth_dev_flow_ctrl_get(uint8_t port_id, struct rte_eth_fc_conf *fc_conf)
}
int
}
int
-rte_eth_dev_flow_ctrl_set(uint
8
_t port_id, struct rte_eth_fc_conf *fc_conf)
+rte_eth_dev_flow_ctrl_set(uint
16
_t port_id, struct rte_eth_fc_conf *fc_conf)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2371,7
+2372,8
@@
rte_eth_dev_flow_ctrl_set(uint8_t port_id, struct rte_eth_fc_conf *fc_conf)
}
int
}
int
-rte_eth_dev_priority_flow_ctrl_set(uint8_t port_id, struct rte_eth_pfc_conf *pfc_conf)
+rte_eth_dev_priority_flow_ctrl_set(uint16_t port_id,
+ struct rte_eth_pfc_conf *pfc_conf)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2437,7
+2439,7
@@
rte_eth_check_reta_entry(struct rte_eth_rss_reta_entry64 *reta_conf,
}
int
}
int
-rte_eth_dev_rss_reta_update(uint
8
_t port_id,
+rte_eth_dev_rss_reta_update(uint
16
_t port_id,
struct rte_eth_rss_reta_entry64 *reta_conf,
uint16_t reta_size)
{
struct rte_eth_rss_reta_entry64 *reta_conf,
uint16_t reta_size)
{
@@
-2463,7
+2465,7
@@
rte_eth_dev_rss_reta_update(uint8_t port_id,
}
int
}
int
-rte_eth_dev_rss_reta_query(uint
8
_t port_id,
+rte_eth_dev_rss_reta_query(uint
16
_t port_id,
struct rte_eth_rss_reta_entry64 *reta_conf,
uint16_t reta_size)
{
struct rte_eth_rss_reta_entry64 *reta_conf,
uint16_t reta_size)
{
@@
-2483,7
+2485,8
@@
rte_eth_dev_rss_reta_query(uint8_t port_id,
}
int
}
int
-rte_eth_dev_rss_hash_update(uint8_t port_id, struct rte_eth_rss_conf *rss_conf)
+rte_eth_dev_rss_hash_update(uint16_t port_id,
+ struct rte_eth_rss_conf *rss_conf)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2494,7
+2497,7
@@
rte_eth_dev_rss_hash_update(uint8_t port_id, struct rte_eth_rss_conf *rss_conf)
}
int
}
int
-rte_eth_dev_rss_hash_conf_get(uint
8
_t port_id,
+rte_eth_dev_rss_hash_conf_get(uint
16
_t port_id,
struct rte_eth_rss_conf *rss_conf)
{
struct rte_eth_dev *dev;
struct rte_eth_rss_conf *rss_conf)
{
struct rte_eth_dev *dev;
@@
-2506,7
+2509,7
@@
rte_eth_dev_rss_hash_conf_get(uint8_t port_id,
}
int
}
int
-rte_eth_dev_udp_tunnel_port_add(uint
8
_t port_id,
+rte_eth_dev_udp_tunnel_port_add(uint
16
_t port_id,
struct rte_eth_udp_tunnel *udp_tunnel)
{
struct rte_eth_dev *dev;
struct rte_eth_udp_tunnel *udp_tunnel)
{
struct rte_eth_dev *dev;
@@
-2528,7
+2531,7
@@
rte_eth_dev_udp_tunnel_port_add(uint8_t port_id,
}
int
}
int
-rte_eth_dev_udp_tunnel_port_delete(uint
8
_t port_id,
+rte_eth_dev_udp_tunnel_port_delete(uint
16
_t port_id,
struct rte_eth_udp_tunnel *udp_tunnel)
{
struct rte_eth_dev *dev;
struct rte_eth_udp_tunnel *udp_tunnel)
{
struct rte_eth_dev *dev;
@@
-2551,7
+2554,7
@@
rte_eth_dev_udp_tunnel_port_delete(uint8_t port_id,
}
int
}
int
-rte_eth_led_on(uint
8
_t port_id)
+rte_eth_led_on(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2562,7
+2565,7
@@
rte_eth_led_on(uint8_t port_id)
}
int
}
int
-rte_eth_led_off(uint
8
_t port_id)
+rte_eth_led_off(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2577,7
+2580,7
@@
rte_eth_led_off(uint8_t port_id)
* an empty spot.
*/
static int
* an empty spot.
*/
static int
-get_mac_addr_index(uint
8
_t port_id, const struct ether_addr *addr)
+get_mac_addr_index(uint
16
_t port_id, const struct ether_addr *addr)
{
struct rte_eth_dev_info dev_info;
struct rte_eth_dev *dev = &rte_eth_devices[port_id];
{
struct rte_eth_dev_info dev_info;
struct rte_eth_dev *dev = &rte_eth_devices[port_id];
@@
-2596,7
+2599,7
@@
get_mac_addr_index(uint8_t port_id, const struct ether_addr *addr)
static const struct ether_addr null_mac_addr;
int
static const struct ether_addr null_mac_addr;
int
-rte_eth_dev_mac_addr_add(uint
8
_t port_id, struct ether_addr *addr,
+rte_eth_dev_mac_addr_add(uint
16
_t port_id, struct ether_addr *addr,
uint32_t pool)
{
struct rte_eth_dev *dev;
uint32_t pool)
{
struct rte_eth_dev *dev;
@@
-2649,7
+2652,7
@@
rte_eth_dev_mac_addr_add(uint8_t port_id, struct ether_addr *addr,
}
int
}
int
-rte_eth_dev_mac_addr_remove(uint
8
_t port_id, struct ether_addr *addr)
+rte_eth_dev_mac_addr_remove(uint
16
_t port_id, struct ether_addr *addr)
{
struct rte_eth_dev *dev;
int index;
{
struct rte_eth_dev *dev;
int index;
@@
-2678,7
+2681,7
@@
rte_eth_dev_mac_addr_remove(uint8_t port_id, struct ether_addr *addr)
}
int
}
int
-rte_eth_dev_default_mac_addr_set(uint
8
_t port_id, struct ether_addr *addr)
+rte_eth_dev_default_mac_addr_set(uint
16
_t port_id, struct ether_addr *addr)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2704,7
+2707,7
@@
rte_eth_dev_default_mac_addr_set(uint8_t port_id, struct ether_addr *addr)
* an empty spot.
*/
static int
* an empty spot.
*/
static int
-get_hash_mac_addr_index(uint
8
_t port_id, const struct ether_addr *addr)
+get_hash_mac_addr_index(uint
16
_t port_id, const struct ether_addr *addr)
{
struct rte_eth_dev_info dev_info;
struct rte_eth_dev *dev = &rte_eth_devices[port_id];
{
struct rte_eth_dev_info dev_info;
struct rte_eth_dev *dev = &rte_eth_devices[port_id];
@@
-2723,7
+2726,7
@@
get_hash_mac_addr_index(uint8_t port_id, const struct ether_addr *addr)
}
int
}
int
-rte_eth_dev_uc_hash_table_set(uint
8
_t port_id, struct ether_addr *addr,
+rte_eth_dev_uc_hash_table_set(uint
16
_t port_id, struct ether_addr *addr,
uint8_t on)
{
int index;
uint8_t on)
{
int index;
@@
-2775,7
+2778,7
@@
rte_eth_dev_uc_hash_table_set(uint8_t port_id, struct ether_addr *addr,
}
int
}
int
-rte_eth_dev_uc_all_hash_table_set(uint
8
_t port_id, uint8_t on)
+rte_eth_dev_uc_all_hash_table_set(uint
16
_t port_id, uint8_t on)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2787,7
+2790,7
@@
rte_eth_dev_uc_all_hash_table_set(uint8_t port_id, uint8_t on)
return (*dev->dev_ops->uc_all_hash_table_set)(dev, on);
}
return (*dev->dev_ops->uc_all_hash_table_set)(dev, on);
}
-int rte_eth_set_queue_rate_limit(uint
8
_t port_id, uint16_t queue_idx,
+int rte_eth_set_queue_rate_limit(uint
16
_t port_id, uint16_t queue_idx,
uint16_t tx_rate)
{
struct rte_eth_dev *dev;
uint16_t tx_rate)
{
struct rte_eth_dev *dev;
@@
-2818,7
+2821,7
@@
int rte_eth_set_queue_rate_limit(uint8_t port_id, uint16_t queue_idx,
}
int
}
int
-rte_eth_mirror_rule_set(uint
8
_t port_id,
+rte_eth_mirror_rule_set(uint
16
_t port_id,
struct rte_eth_mirror_conf *mirror_conf,
uint8_t rule_id, uint8_t on)
{
struct rte_eth_mirror_conf *mirror_conf,
uint8_t rule_id, uint8_t on)
{
@@
-2856,7
+2859,7
@@
rte_eth_mirror_rule_set(uint8_t port_id,
}
int
}
int
-rte_eth_mirror_rule_reset(uint
8
_t port_id, uint8_t rule_id)
+rte_eth_mirror_rule_reset(uint
16
_t port_id, uint8_t rule_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-2869,7
+2872,7
@@
rte_eth_mirror_rule_reset(uint8_t port_id, uint8_t rule_id)
}
int
}
int
-rte_eth_dev_callback_register(uint
8
_t port_id,
+rte_eth_dev_callback_register(uint
16
_t port_id,
enum rte_eth_event_type event,
rte_eth_dev_cb_fn cb_fn, void *cb_arg)
{
enum rte_eth_event_type event,
rte_eth_dev_cb_fn cb_fn, void *cb_arg)
{
@@
-2909,7
+2912,7
@@
rte_eth_dev_callback_register(uint8_t port_id,
}
int
}
int
-rte_eth_dev_callback_unregister(uint
8
_t port_id,
+rte_eth_dev_callback_unregister(uint
16
_t port_id,
enum rte_eth_event_type event,
rte_eth_dev_cb_fn cb_fn, void *cb_arg)
{
enum rte_eth_event_type event,
rte_eth_dev_cb_fn cb_fn, void *cb_arg)
{
@@
-2981,7
+2984,7
@@
_rte_eth_dev_callback_process(struct rte_eth_dev *dev,
}
int
}
int
-rte_eth_dev_rx_intr_ctl(uint
8
_t port_id, int epfd, int op, void *data)
+rte_eth_dev_rx_intr_ctl(uint
16
_t port_id, int epfd, int op, void *data)
{
uint32_t vec;
struct rte_eth_dev *dev;
{
uint32_t vec;
struct rte_eth_dev *dev;
@@
-3042,7
+3045,7
@@
rte_eth_dma_zone_reserve(const struct rte_eth_dev *dev, const char *ring_name,
}
int
}
int
-rte_eth_dev_rx_intr_ctl_q(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_dev_rx_intr_ctl_q(uint
16
_t port_id, uint16_t queue_id,
int epfd, int op, void *data)
{
uint32_t vec;
int epfd, int op, void *data)
{
uint32_t vec;
@@
-3082,7
+3085,7
@@
rte_eth_dev_rx_intr_ctl_q(uint8_t port_id, uint16_t queue_id,
}
int
}
int
-rte_eth_dev_rx_intr_enable(uint
8
_t port_id,
+rte_eth_dev_rx_intr_enable(uint
16
_t port_id,
uint16_t queue_id)
{
struct rte_eth_dev *dev;
uint16_t queue_id)
{
struct rte_eth_dev *dev;
@@
-3096,7
+3099,7
@@
rte_eth_dev_rx_intr_enable(uint8_t port_id,
}
int
}
int
-rte_eth_dev_rx_intr_disable(uint
8
_t port_id,
+rte_eth_dev_rx_intr_disable(uint
16
_t port_id,
uint16_t queue_id)
{
struct rte_eth_dev *dev;
uint16_t queue_id)
{
struct rte_eth_dev *dev;
@@
-3111,7
+3114,8
@@
rte_eth_dev_rx_intr_disable(uint8_t port_id,
int
int
-rte_eth_dev_filter_supported(uint8_t port_id, enum rte_filter_type filter_type)
+rte_eth_dev_filter_supported(uint16_t port_id,
+ enum rte_filter_type filter_type)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3124,7
+3128,7
@@
rte_eth_dev_filter_supported(uint8_t port_id, enum rte_filter_type filter_type)
}
int
}
int
-rte_eth_dev_filter_ctrl(uint
8
_t port_id, enum rte_filter_type filter_type,
+rte_eth_dev_filter_ctrl(uint
16
_t port_id, enum rte_filter_type filter_type,
enum rte_filter_op filter_op, void *arg)
{
struct rte_eth_dev *dev;
enum rte_filter_op filter_op, void *arg)
{
struct rte_eth_dev *dev;
@@
-3137,7
+3141,7
@@
rte_eth_dev_filter_ctrl(uint8_t port_id, enum rte_filter_type filter_type,
}
void *
}
void *
-rte_eth_add_rx_callback(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_add_rx_callback(uint
16
_t port_id, uint16_t queue_id,
rte_rx_callback_fn fn, void *user_param)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
rte_rx_callback_fn fn, void *user_param)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
@@
-3179,7
+3183,7
@@
rte_eth_add_rx_callback(uint8_t port_id, uint16_t queue_id,
}
void *
}
void *
-rte_eth_add_first_rx_callback(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_add_first_rx_callback(uint
16
_t port_id, uint16_t queue_id,
rte_rx_callback_fn fn, void *user_param)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
rte_rx_callback_fn fn, void *user_param)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
@@
-3214,7
+3218,7
@@
rte_eth_add_first_rx_callback(uint8_t port_id, uint16_t queue_id,
}
void *
}
void *
-rte_eth_add_tx_callback(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_add_tx_callback(uint
16
_t port_id, uint16_t queue_id,
rte_tx_callback_fn fn, void *user_param)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
rte_tx_callback_fn fn, void *user_param)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
@@
-3257,7
+3261,7
@@
rte_eth_add_tx_callback(uint8_t port_id, uint16_t queue_id,
}
int
}
int
-rte_eth_remove_rx_callback(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_remove_rx_callback(uint
16
_t port_id, uint16_t queue_id,
struct rte_eth_rxtx_callback *user_cb)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
struct rte_eth_rxtx_callback *user_cb)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
@@
-3291,7
+3295,7
@@
rte_eth_remove_rx_callback(uint8_t port_id, uint16_t queue_id,
}
int
}
int
-rte_eth_remove_tx_callback(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_remove_tx_callback(uint
16
_t port_id, uint16_t queue_id,
struct rte_eth_rxtx_callback *user_cb)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
struct rte_eth_rxtx_callback *user_cb)
{
#ifndef RTE_ETHDEV_RXTX_CALLBACKS
@@
-3325,7
+3329,7
@@
rte_eth_remove_tx_callback(uint8_t port_id, uint16_t queue_id,
}
int
}
int
-rte_eth_rx_queue_info_get(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_rx_queue_info_get(uint
16
_t port_id, uint16_t queue_id,
struct rte_eth_rxq_info *qinfo)
{
struct rte_eth_dev *dev;
struct rte_eth_rxq_info *qinfo)
{
struct rte_eth_dev *dev;
@@
-3349,7
+3353,7
@@
rte_eth_rx_queue_info_get(uint8_t port_id, uint16_t queue_id,
}
int
}
int
-rte_eth_tx_queue_info_get(uint
8
_t port_id, uint16_t queue_id,
+rte_eth_tx_queue_info_get(uint
16
_t port_id, uint16_t queue_id,
struct rte_eth_txq_info *qinfo)
{
struct rte_eth_dev *dev;
struct rte_eth_txq_info *qinfo)
{
struct rte_eth_dev *dev;
@@
-3373,7
+3377,7
@@
rte_eth_tx_queue_info_get(uint8_t port_id, uint16_t queue_id,
}
int
}
int
-rte_eth_dev_set_mc_addr_list(uint
8
_t port_id,
+rte_eth_dev_set_mc_addr_list(uint
16
_t port_id,
struct ether_addr *mc_addr_set,
uint32_t nb_mc_addr)
{
struct ether_addr *mc_addr_set,
uint32_t nb_mc_addr)
{
@@
-3387,7
+3391,7
@@
rte_eth_dev_set_mc_addr_list(uint8_t port_id,
}
int
}
int
-rte_eth_timesync_enable(uint
8
_t port_id)
+rte_eth_timesync_enable(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3399,7
+3403,7
@@
rte_eth_timesync_enable(uint8_t port_id)
}
int
}
int
-rte_eth_timesync_disable(uint
8
_t port_id)
+rte_eth_timesync_disable(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3411,7
+3415,7
@@
rte_eth_timesync_disable(uint8_t port_id)
}
int
}
int
-rte_eth_timesync_read_rx_timestamp(uint
8
_t port_id, struct timespec *timestamp,
+rte_eth_timesync_read_rx_timestamp(uint
16
_t port_id, struct timespec *timestamp,
uint32_t flags)
{
struct rte_eth_dev *dev;
uint32_t flags)
{
struct rte_eth_dev *dev;
@@
-3424,7
+3428,8
@@
rte_eth_timesync_read_rx_timestamp(uint8_t port_id, struct timespec *timestamp,
}
int
}
int
-rte_eth_timesync_read_tx_timestamp(uint8_t port_id, struct timespec *timestamp)
+rte_eth_timesync_read_tx_timestamp(uint16_t port_id,
+ struct timespec *timestamp)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3436,7
+3441,7
@@
rte_eth_timesync_read_tx_timestamp(uint8_t port_id, struct timespec *timestamp)
}
int
}
int
-rte_eth_timesync_adjust_time(uint
8
_t port_id, int64_t delta)
+rte_eth_timesync_adjust_time(uint
16
_t port_id, int64_t delta)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3448,7
+3453,7
@@
rte_eth_timesync_adjust_time(uint8_t port_id, int64_t delta)
}
int
}
int
-rte_eth_timesync_read_time(uint
8
_t port_id, struct timespec *timestamp)
+rte_eth_timesync_read_time(uint
16
_t port_id, struct timespec *timestamp)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3460,7
+3465,7
@@
rte_eth_timesync_read_time(uint8_t port_id, struct timespec *timestamp)
}
int
}
int
-rte_eth_timesync_write_time(uint
8
_t port_id, const struct timespec *timestamp)
+rte_eth_timesync_write_time(uint
16
_t port_id, const struct timespec *timestamp)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3472,7
+3477,7
@@
rte_eth_timesync_write_time(uint8_t port_id, const struct timespec *timestamp)
}
int
}
int
-rte_eth_dev_get_reg_info(uint
8
_t port_id, struct rte_dev_reg_info *info)
+rte_eth_dev_get_reg_info(uint
16
_t port_id, struct rte_dev_reg_info *info)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3484,7
+3489,7
@@
rte_eth_dev_get_reg_info(uint8_t port_id, struct rte_dev_reg_info *info)
}
int
}
int
-rte_eth_dev_get_eeprom_length(uint
8
_t port_id)
+rte_eth_dev_get_eeprom_length(uint
16
_t port_id)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3496,7
+3501,7
@@
rte_eth_dev_get_eeprom_length(uint8_t port_id)
}
int
}
int
-rte_eth_dev_get_eeprom(uint
8
_t port_id, struct rte_dev_eeprom_info *info)
+rte_eth_dev_get_eeprom(uint
16
_t port_id, struct rte_dev_eeprom_info *info)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3508,7
+3513,7
@@
rte_eth_dev_get_eeprom(uint8_t port_id, struct rte_dev_eeprom_info *info)
}
int
}
int
-rte_eth_dev_set_eeprom(uint
8
_t port_id, struct rte_dev_eeprom_info *info)
+rte_eth_dev_set_eeprom(uint
16
_t port_id, struct rte_dev_eeprom_info *info)
{
struct rte_eth_dev *dev;
{
struct rte_eth_dev *dev;
@@
-3520,7
+3525,7
@@
rte_eth_dev_set_eeprom(uint8_t port_id, struct rte_dev_eeprom_info *info)
}
int
}
int
-rte_eth_dev_get_dcb_info(uint
8
_t port_id,
+rte_eth_dev_get_dcb_info(uint
16
_t port_id,
struct rte_eth_dcb_info *dcb_info)
{
struct rte_eth_dev *dev;
struct rte_eth_dcb_info *dcb_info)
{
struct rte_eth_dev *dev;
@@
-3535,7
+3540,7
@@
rte_eth_dev_get_dcb_info(uint8_t port_id,
}
int
}
int
-rte_eth_dev_l2_tunnel_eth_type_conf(uint
8
_t port_id,
+rte_eth_dev_l2_tunnel_eth_type_conf(uint
16
_t port_id,
struct rte_eth_l2_tunnel_conf *l2_tunnel)
{
struct rte_eth_dev *dev;
struct rte_eth_l2_tunnel_conf *l2_tunnel)
{
struct rte_eth_dev *dev;
@@
-3558,7
+3563,7
@@
rte_eth_dev_l2_tunnel_eth_type_conf(uint8_t port_id,
}
int
}
int
-rte_eth_dev_l2_tunnel_offload_set(uint
8
_t port_id,
+rte_eth_dev_l2_tunnel_offload_set(uint
16
_t port_id,
struct rte_eth_l2_tunnel_conf *l2_tunnel,
uint32_t mask,
uint8_t en)
struct rte_eth_l2_tunnel_conf *l2_tunnel,
uint32_t mask,
uint8_t en)
@@
-3602,7
+3607,7
@@
rte_eth_dev_adjust_nb_desc(uint16_t *nb_desc,
}
int
}
int
-rte_eth_dev_adjust_nb_rx_tx_desc(uint
8
_t port_id,
+rte_eth_dev_adjust_nb_rx_tx_desc(uint
16
_t port_id,
uint16_t *nb_rx_desc,
uint16_t *nb_tx_desc)
{
uint16_t *nb_rx_desc,
uint16_t *nb_tx_desc)
{