[PATCH] drivers: net: xgene: fix Tx flow control

David Miller davem at davemloft.net
Tue Dec 1 12:21:27 PST 2015

From: Iyappan Subramanian <isubramanian at apm.com>
Date: Fri, 27 Nov 2015 19:22:31 -0800

> Currently the Tx flow control is based on reading the hardware state,
> which is not accurate since it may not reflect the descriptors that
> are not yet reached the memory.
> To accurately control the Tx flow, changing it to be software based.
> Signed-off-by: Iyappan Subramanian <isubramanian at apm.com>
> Tested-by: Khuong Dinh <kdinh at apm.com>

Having a new atomic operation for every completion descriptor
operation is very excessive.

Especially when there is probably some other lock being held in all
of these paths upon which you can use for synchornization.

More information about the linux-arm-kernel mailing list