vmxnet3: fix link state handling
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 9 Jul 2015 18:24:13 +0000 (11:24 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Jul 2015 22:42:23 +0000 (00:42 +0200)
commitbb1d14b87fc30ee502e9db528b23ad2aa68d70f0
tree4ab397858ad7631f0080855f6b34a628b1f8e677
parent7ba5de417e3c32fe3280838353b786c1ca86df26
vmxnet3: fix link state handling

The Intel version of VMXNET3 driver does not handle link state properly.
The VMXNET3 API returns 1 if connected and 0 if disconnected.
Also need to return correct value to indicate state change.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Yong Wang <yongwang@vmware.com>
drivers/net/vmxnet3/vmxnet3_ethdev.c