[dpdk-dev] [PATCH v3] librte_ether: use RTE_ETH_VALID_PORTID_OR_ERR_RET to check port_id
Thomas Monjalon
thomas.monjalon at 6wind.com
Tue May 24 15:31:58 CEST 2016
2016-05-18 21:15, 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.
>
> Signed-off-by: Mauricio Vasquez B <mauricio.vasquezbernal at studenti.polito.it>
> ---
> v3:
> - use it also in rte_eth_add_rx_callback and rte_eth_add_tx_callback
> v2:
> - add missed case
> - change also cases in examples/ethtool/lib/rte_ethtool.c
> examples/ethtool/lib/rte_ethtool.c | 15 ++++++-----
> lib/librte_ether/rte_ethdev.c | 51 +++++++++++++-------------------------
> 2 files changed, 24 insertions(+), 42 deletions(-)
I've fixed also 2 bond functions and removed some whitespace changes.
Applied, thanks
More information about the dev
mailing list