ethdev: API for link up and down
authorOuyang Changchun <changchun.ouyang@intel.com>
Wed, 28 May 2014 07:15:00 +0000 (15:15 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 10 Jun 2014 22:29:36 +0000 (00:29 +0200)
commit915e6783758611c1d018f9570b506733120a5fa0
tree33cd44ef27e1b5d1c123a1f8c4ef4b10cd9d84b7
parent1d99384f4d161d9d8faad110315a68e7011882d4
ethdev: API for link up and down

This patch adds API to support the functionality of setting link up and down.
It can be used to repeatedly stop and restart RX/TX of a port without
re-allocating resources for the port and re-configuring the port.

Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com>
Tested-by: Waterman Cao <waterman.cao@intel.com>
Acked by: Ivan Boule <ivan.boule@6wind.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h