[dpdk-dev] [PATCH] librte_ether: use RTE_ETH_VALID_PORTID_OR_ERR_RET to check port_id
Thomas Monjalon
thomas.monjalon at 6wind.com
Fri May 13 18:20:31 CEST 2016
2016-04-29 17:23, Mauricio Vasquez B:
> The RTE_ETH_VALID_PORTID_OR_ERR_RET macro is used in some places
> to check if a port id is valid or not. This commit makes use of it in
> some new parts of the code.
There are other occurences:
rte_eth_dev_socket_id
rte_eth_add_rx_callback
rte_eth_add_tx_callback
rte_eth_remove_rx_callback
rte_eth_remove_tx_callback
I think it could be done also in examples/ethtool/lib.
More information about the dev
mailing list