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

Commit 674e4f93 authored by Haiying Wang's avatar Haiying Wang Committed by Kumar Gala
Browse files

net/ucc_geth: Assign six threads to Rx for UEC



In the case the QE has 46 SNUMs for the threads to support four UCC
Ethernet at 1000Base-T simultaneously.

Signed-off-by: default avatarHaiying Wang <Haiying.Wang@freescale.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Acked-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 98ca77af
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3710,6 +3710,14 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
		ug_info->uf_info.utfet = UCC_GETH_UTFET_GIGA_INIT;
		ug_info->uf_info.utftt = UCC_GETH_UTFTT_GIGA_INIT;
		ug_info->numThreadsTx = UCC_GETH_NUM_OF_THREADS_4;

		/* If QE's snum number is 46 which means we need to support
		 * 4 UECs at 1000Base-T simultaneously, we need to allocate
		 * more Threads to Rx.
		 */
		if (qe_get_num_of_snums() == 46)
			ug_info->numThreadsRx = UCC_GETH_NUM_OF_THREADS_6;
		else
			ug_info->numThreadsRx = UCC_GETH_NUM_OF_THREADS_4;
	}