Miao Yan fde58177aa net/vmxnet3: return 1 on device activation failure
When reading device status, 0 means device is successfully
activated and 1 means error.

This behavior can be observed by the following steps:

1) run a Linux distro on esxi server (5.5+)
2) modify vmxnet3 Linux driver to give it an invalid
   address to 'adapter->shared_pa' which is the
   shared memory for guest/host communication

This will trigger device activation failure and kernel
log will have the following message:

   [ 7138.403256] vmxnet3 0000:03:00.0 eth1: Failed to activate dev: error 1

So return 1 on device activation failure instead of -1;

Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-01-11 11:01:34 +08:00
..
2015-09-11 10:45:43 +03:00
2015-11-11 18:56:26 +01:00
2015-12-07 14:18:31 +00:00
2015-11-27 10:39:55 +08:00
2015-10-27 15:59:46 +00:00
2015-07-27 14:12:18 +01:00
2015-09-07 10:39:30 +01:00
2015-09-02 14:51:07 +01:00
2015-09-02 14:51:07 +01:00
2015-07-27 14:12:18 +01:00
2015-07-27 14:12:18 +01:00
2015-09-25 14:53:29 +02:00