igc: Fix 'sw_idx' type in struct igc_nfc_rule
authorAndre Guedes <andre.guedes@intel.com>
Fri, 24 Apr 2020 20:16:13 +0000 (13:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 23 May 2020 01:21:51 +0000 (18:21 -0700)
commitd3ba9e6f6157e6fa047d853936dabb981e315080
treed7827820e62fccbb9be623da3b1297a3bdcb95de
parent16fdc16c6bff6764fc8c9a5f10640dfdb7ce201a
igc: Fix 'sw_idx' type in struct igc_nfc_rule

The 'sw_idx' field from 'struct igc_nfc_rule' is u16 type but it is
assigned an u32 value in igc_ethtool_init_nfc_rule(). This patch changes
'sw_idx' type to u32 so they match. Also, it makes more sense to call
this field 'location' since it holds the NFC rule location.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_ethtool.c