ethdev: clean port id retrieval when attaching
authorRavi Kerur <rkerur@gmail.com>
Wed, 23 Sep 2015 21:16:17 +0000 (14:16 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 3 Nov 2015 13:18:34 +0000 (14:18 +0100)
commit9c5b8d8b9febc0b2a9dca8211a678c75933ebaaa
tree4c55389b92212def5ddc0a3b2bdc91147977e0f9
parent45c55d39c5ebb8f8e1e70401dd0492f6c935455b
ethdev: clean port id retrieval when attaching

Removed following functions
   > rte_eth_dev_save and
   > rte_eth_dev_get_changed_port

Added 2 new functions
   > rte_eth_dev_get_port_by_name
   > rte_eth_dev_get_port_by_addr

Compiled on Linux for following targets
   > x86_64-native-linuxapp-gcc
   > x86_64-native-linuxapp-clang
   > x86_x32-native-linuxapp-gcc

Compiled on FreeBSD for following targets
   > x86_64-native-bsdapp-clang
   > x86_64-native-bsdapp-gcc

Tested on Linux/FreeBSD:
   > port attach eth_null
   > port start all
   > port stop all
   > port close all
   > port detach 0
   > port attach eth_null
   > port start all
   > port stop all
   > port close all
   > port detach 0

Successful run of checkpatch.pl on the diffs

Successful validate_abi on Linux for following targets

   > x86_64-native-linuxapp-gcc
   > x86_64-native-linuxapp-clang

Signed-off-by: Ravi Kerur <rkerur@gmail.com>
Acked-by: Tetsuya Mukawa <mukawa@igel.co.jp>
lib/librte_ether/rte_ethdev.c