virtio: do not report link state feature unless available
authorStephen Hemminger <shemming@brocade.com>
Fri, 28 Aug 2015 16:23:37 +0000 (09:23 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Oct 2015 14:12:32 +0000 (16:12 +0200)
commit954ea11540b63f6e902a3d40fbea1f08c8f24176
tree3b7306f8aaa03e12ef9099e12e3fe6c4eb75d8e0
parent6c6373c763748ca28805f215c3f646e127a7cf8a
virtio: do not report link state feature unless available

If host does not support virtio link state (like current DPDK vhost)
then don't set the flag. This keeps applications from incorrectly
assuming that link state is available when it is not. It also
avoids useless "guess what works in the config".

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
drivers/net/virtio/virtio_ethdev.c