virtio: do not enable/disable Rx modes unless supported
authorStephen Hemminger <shemming@brocade.com>
Thu, 11 Jun 2015 15:53:24 +0000 (08:53 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 12 Jun 2015 12:36:38 +0000 (14:36 +0200)
commite9e414a41a6661da9ee9b4b56ee75662c415a35b
tree957673482a43e52c4b9ad3b78564f2c43ae2dc5c
parent4ecce8356e9ef02cef747793ef93767665154892
virtio: do not enable/disable Rx modes unless supported

If negotiation with host says that controlling Rx mode is
not supported, then don't try.

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