ethdev: use dedicated macro to check port id
authorMauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Wed, 18 May 2016 19:15:11 +0000 (21:15 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 May 2016 13:30:08 +0000 (15:30 +0200)
commit1414dabc1b59b471b8604e7368bef581747cdcc6
tree98b1ba6e9d52d2ef35dbfe3bd925bc832939632b
parente89880957f47d8529cf61c0c0374b053b8704ed6
ethdev: use dedicated macro to check port id

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@studenti.polito.it>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
drivers/net/bonding/rte_eth_bond_api.c
examples/ethtool/lib/rte_ethtool.c
lib/librte_ether/rte_ethdev.c