intel: correct return from set features callback
authorSerhey Popovych <serhe.popovych@gmail.com>
Thu, 29 Mar 2018 14:51:36 +0000 (17:51 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 19 Mar 2019 21:18:49 +0000 (14:18 -0700)
commitb0ddfe2bb2bd80b1090d5bf42bb65243b76d3b97
tree6e490599d6b3e29b1f85331441b98a0be734e8ea
parent310974faccda080a5e0388d79cf6190d6aa0f1fa
intel: correct return from set features callback

According to comments in <linux/netdevice.h> we should return either >0
or -errno from ->ndo_set_features() if changing dev->features by itself.

Return 1 in such places to notify netdev_update_features() about applied
changes in dev->features.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e100.c
drivers/net/ethernet/intel/e1000/e1000_main.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c