virtio: do not set mac table unless negotiated
authorStephen Hemminger <shemming@brocade.com>
Thu, 11 Jun 2015 15:53:25 +0000 (08:53 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 12 Jun 2015 12:40:15 +0000 (14:40 +0200)
commit2704623620fa725ce511f7393466cc5703e451e6
tree76ebf66e5fd4df2487529068c238d19eb1099f90
parente9e414a41a6661da9ee9b4b56ee75662c415a35b
virtio: do not set mac table unless negotiated

Don't attempt to set the MAC address table unless the host allows
it in feature negotiation. Also, don't return a value from mac_table_set
since all callers ignore the return value.

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