diff options
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 74eea2fbb4f..24f6623c82a 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c | |||
@@ -92,10 +92,10 @@ static inline void _tg3_flag_clear(enum TG3_FLAGS flag, unsigned long *bits) | |||
92 | 92 | ||
93 | #define DRV_MODULE_NAME "tg3" | 93 | #define DRV_MODULE_NAME "tg3" |
94 | #define TG3_MAJ_NUM 3 | 94 | #define TG3_MAJ_NUM 3 |
95 | #define TG3_MIN_NUM 124 | 95 | #define TG3_MIN_NUM 125 |
96 | #define DRV_MODULE_VERSION \ | 96 | #define DRV_MODULE_VERSION \ |
97 | __stringify(TG3_MAJ_NUM) "." __stringify(TG3_MIN_NUM) | 97 | __stringify(TG3_MAJ_NUM) "." __stringify(TG3_MIN_NUM) |
98 | #define DRV_MODULE_RELDATE "March 21, 2012" | 98 | #define DRV_MODULE_RELDATE "September 26, 2012" |
99 | 99 | ||
100 | #define RESET_KIND_SHUTDOWN 0 | 100 | #define RESET_KIND_SHUTDOWN 0 |
101 | #define RESET_KIND_INIT 1 | 101 | #define RESET_KIND_INIT 1 |
@@ -10245,10 +10245,13 @@ static bool tg3_enable_msix(struct tg3 *tp) | |||
10245 | tp->rxq_cnt = netif_get_num_default_rss_queues(); | 10245 | tp->rxq_cnt = netif_get_num_default_rss_queues(); |
10246 | if (tp->rxq_cnt > tp->rxq_max) | 10246 | if (tp->rxq_cnt > tp->rxq_max) |
10247 | tp->rxq_cnt = tp->rxq_max; | 10247 | tp->rxq_cnt = tp->rxq_max; |
10248 | if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719 || | 10248 | |
10249 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5720) && | 10249 | /* Disable multiple TX rings by default. Simple round-robin hardware |
10250 | !tp->txq_req) | 10250 | * scheduling of the TX rings can cause starvation of rings with |
10251 | tp->txq_cnt = min(tp->rxq_cnt, tp->txq_max); | 10251 | * small packets when other rings have TSO or jumbo packets. |
10252 | */ | ||
10253 | if (!tp->txq_req) | ||
10254 | tp->txq_cnt = 1; | ||
10252 | 10255 | ||
10253 | tp->irq_cnt = tg3_irq_count(tp); | 10256 | tp->irq_cnt = tg3_irq_count(tp); |
10254 | 10257 | ||