Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c805b874 authored by Olga Zaborska's avatar Olga Zaborska Committed by Greg Kroah-Hartman
Browse files

igc: Change IGC_MIN to allow set rx/tx value between 64 and 80



[ Upstream commit 5aa48279712e1f134aac908acde4df798955a955 ]

Change the minimum value of RX/TX descriptors to 64 to enable setting the rx/tx
value between 64 and 80. All igc devices can use as low as 64 descriptors.
This change will unify igc with other drivers.
Based on commit 7b1be198 ("e1000e: lower ring minimum size to 64")

Fixes: 0507ef8a ("igc: Add transmit and receive fastpath and interrupt handlers")
Signed-off-by: default avatarOlga Zaborska <olga.zaborska@intel.com>
Tested-by: default avatarNaama Meir <naamax.meir@linux.intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8047a489
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -78,11 +78,11 @@ extern char igc_driver_version[];
/* TX/RX descriptor defines */
#define IGC_DEFAULT_TXD		256
#define IGC_DEFAULT_TX_WORK	128
#define IGC_MIN_TXD		80
#define IGC_MIN_TXD		64
#define IGC_MAX_TXD		4096

#define IGC_DEFAULT_RXD		256
#define IGC_MIN_RXD		80
#define IGC_MIN_RXD		64
#define IGC_MAX_RXD		4096

/* Transmit and receive queues */