diff options
-rw-r--r-- | drivers/net/ucc_geth.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 8287bc19868b..9dd16c9b1a10 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -3710,7 +3710,15 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma | |||
3710 | ug_info->uf_info.utfet = UCC_GETH_UTFET_GIGA_INIT; | 3710 | ug_info->uf_info.utfet = UCC_GETH_UTFET_GIGA_INIT; |
3711 | ug_info->uf_info.utftt = UCC_GETH_UTFTT_GIGA_INIT; | 3711 | ug_info->uf_info.utftt = UCC_GETH_UTFTT_GIGA_INIT; |
3712 | ug_info->numThreadsTx = UCC_GETH_NUM_OF_THREADS_4; | 3712 | ug_info->numThreadsTx = UCC_GETH_NUM_OF_THREADS_4; |
3713 | ug_info->numThreadsRx = UCC_GETH_NUM_OF_THREADS_4; | 3713 | |
3714 | /* If QE's snum number is 46 which means we need to support | ||
3715 | * 4 UECs at 1000Base-T simultaneously, we need to allocate | ||
3716 | * more Threads to Rx. | ||
3717 | */ | ||
3718 | if (qe_get_num_of_snums() == 46) | ||
3719 | ug_info->numThreadsRx = UCC_GETH_NUM_OF_THREADS_6; | ||
3720 | else | ||
3721 | ug_info->numThreadsRx = UCC_GETH_NUM_OF_THREADS_4; | ||
3714 | } | 3722 | } |
3715 | 3723 | ||
3716 | if (netif_msg_probe(&debug)) | 3724 | if (netif_msg_probe(&debug)) |