]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: xgene: fix Tx flow control
authorIyappan Subramanian <isubramanian@apm.com>
Thu, 17 Dec 2015 06:26:05 +0000 (22:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Dec 2015 20:45:53 +0000 (15:45 -0500)
commit6828e5523c7d9735c61f06620acc918ef7d49da0
tree1f5d663e37c461b080bd2959431bd57d07abb55c
parent2a4e952deb0e9aaf852b6bb2767ae958c5876b09
drivers: net: xgene: fix Tx flow control

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@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.h