netdev-linux: Don't set ethtool flags if flag is already set on netdev
authorAnoob Soman <anoob.soman@citrix.com>
Thu, 3 Sep 2015 13:53:19 +0000 (14:53 +0100)
committerJesse Gross <jesse@nicira.com>
Thu, 3 Sep 2015 19:51:26 +0000 (12:51 -0700)
commitad2dade5654257359764c1af9130ebc5cbddab79
treea50019c953cc9743412f9e07825beca003786426
parent554daf066bf4a8eb7bbc8edc1a877a3afc0de38d
netdev-linux: Don't set ethtool flags if flag is already set on netdev

Check if ethtool flags is already set on a netdev, before trying to set it.

This patch works around issues with some older verison of ethernet drivers,
which tend to reset the NIC when call to disable LRO is made, even if LRO is
already disable on that NIC. NIC reset is not desirable in OVS upgrade scenario
as it causes extended downtime.

Signed-off-by: Anoob Soman <anoob.soman@citrix.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
lib/netdev-linux.c