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)
commit67894eec3e27a5b61281cb68f63b933e8c111348
tree1f5d663e37c461b080bd2959431bd57d07abb55c
parent07e100f984975cb0417a7d5e626d0409efbad478
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