net: add function to convert string to ethernet address
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 5 Jul 2019 17:16:17 +0000 (10:16 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 8 Jul 2019 19:26:52 +0000 (21:26 +0200)
commit596d31092d322b7a8387f352311ffeb658547914
tree69e1d30497761659244b31181b3c4a98adfb03f0
parent3bdd09ae0714da28baf7b39b0741bed3316ff343
net: add function to convert string to ethernet address

Make a function that can be used in place of eth_aton_r
to convert a string to rte_ether_addr. This function
allows both byte (xx:xx:xx:xx:xx:xx) and word (XXXX:XXXX:XXXX)
format and has the same lack of error handling as the original.

This also allows ethdev to no longer have a hard dependency
on the cmdline library.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_net/rte_ether.c
lib/librte_net/rte_ether.h
lib/librte_net/rte_net_version.map