ethdev: use constants for link duplex
authorMarc Sune <marcdevel@gmail.com>
Thu, 31 Mar 2016 22:12:25 +0000 (00:12 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Apr 2016 19:38:34 +0000 (21:38 +0200)
commit1131900006078c2e4f8cd5493c9a794a91701ab9
treea76d5fc02373cf6e2d98a440a363186b0822ca05
parent09419f235e099ecb265a590778fe64a685a2a241
ethdev: use constants for link duplex

Some duplex values are replaced from 0 to half-duplex when link is down.

Some drivers are still using their own constants for duplex modes.

Signed-off-by: Marc Sune <marcdevel@gmail.com>
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_ethdev.h
lib/librte_ether/rte_ethdev.h