ethdev: introduce valid port helper
authorStephen Hemminger <shemming@brocade.com>
Sat, 27 Jun 2015 00:01:45 +0000 (17:01 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 2 Jul 2015 10:32:12 +0000 (12:32 +0200)
commit75acd57ad0251fac8ec6d291a8e566a704418d54
treec827aa7c3eabcf8943ecbaab34099a8fae53158f
parent6c6030cef8db97337054e4ca10c7c78867d417ea
ethdev: introduce valid port helper

The code pattern is repeated so many times, it is a good
idea to introduce template like other code here uses.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_ether/rte_ethdev.c