igb: Add support for i354 devices
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / intel / igb / igb.h
index d47ac2ae1b41d1743bda42349fe4ba8dbad44572..c92115e71ebea810287df4515f98611bd908fcf5 100644 (file)
@@ -122,9 +122,9 @@ struct vf_data_storage {
  *           descriptors until either it has this many to write back, or the
  *           ITR timer expires.
  */
-#define IGB_RX_PTHRESH 8
+#define IGB_RX_PTHRESH ((hw->mac.type == e1000_i354) ? 12 : 8)
 #define IGB_RX_HTHRESH 8
-#define IGB_TX_PTHRESH 8
+#define IGB_TX_PTHRESH ((hw->mac.type == e1000_i354) ? 20 : 8)
 #define IGB_TX_HTHRESH 1
 #define IGB_RX_WTHRESH ((hw->mac.type == e1000_82576 && \
                          adapter->msix_entries) ? 1 : 4)