]> git.baikalelectronics.ru Git - kernel.git/commitdiff
igc: Fix IGC_MAX_RXNFC_RULES
authorAndre Guedes <andre.guedes@intel.com>
Tue, 12 May 2020 17:35:53 +0000 (10:35 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 May 2020 03:15:38 +0000 (20:15 -0700)
IGC supports a total of 32 rules. 16 MAC address based, 8 VLAN priority
based, and 8 Ethertype based. This patch fixes IGC_MAX_RXNFC_RULES
accordingly.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Acked-by: Sasha Neftin <sasha.neftin@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

index 14f9edaaaf834a4490b242aa5778f57ee1f5a71d..5dbc5a156626af47abc4755ec424fad29a30ced8 100644 (file)
@@ -457,7 +457,10 @@ struct igc_nfc_rule {
        u16 action;
 };
 
-#define IGC_MAX_RXNFC_RULES            16
+/* IGC supports a total of 32 NFC rules: 16 MAC address based,, 8 VLAN priority
+ * based, and 8 ethertype based.
+ */
+#define IGC_MAX_RXNFC_RULES            32
 
 /* igc_desc_unused - calculate if we have unused descriptors */
 static inline u16 igc_desc_unused(const struct igc_ring *ring)