]> 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)
commite5115a3669b638c098cae5662e5082aeac52e78f
tree1f5d663e37c461b080bd2959431bd57d07abb55c
parent39491497079e6852f17f9e7c3a11e633052b6f16
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