From: Stephen Hemminger Date: Fri, 5 Jul 2019 17:16:17 +0000 (-0700) Subject: net: add function to convert string to ethernet address X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=596d31092d322b7a8387f352311ffeb658547914;hp=596d31092d322b7a8387f352311ffeb658547914;p=dpdk.git 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 Reviewed-by: Andrew Rybchenko ---