Skip to content

Commit

Permalink
igc: Change IGC_MIN to allow set rx/tx value between 64 and 80
Browse files Browse the repository at this point in the history
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 7b1be19 ("e1000e: lower ring minimum size to 64")

Fixes: 0507ef8 ("igc: Add transmit and receive fastpath and interrupt handlers")
Signed-off-by: Olga Zaborska <olga.zaborska@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
  • Loading branch information
Olga Zaborska authored and Tony Nguyen committed Sep 5, 2023
1 parent 29fe7a1 commit 5aa4827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/intel/igc/igc.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ static inline u32 igc_rss_type(const union igc_adv_rx_desc *rx_desc)
/* 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

/* Supported Rx Buffer Sizes */
Expand Down

0 comments on commit 5aa4827

Please sign in to comment.