]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: add software control for pause frame mode
authorTimur Tabi <timur@codeaurora.org>
Wed, 20 Sep 2017 20:32:53 +0000 (15:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 22:19:30 +0000 (15:19 -0700)
commit271462be7c67fcae00fcbfbba2d5e6b9c21352b1
tree68e429f47ac1b4701cef27857e092511c34d1ecc
parente500ca9b90e5510dbc44d9be7800b82fe2461145
net: qcom/emac: add software control for pause frame mode

The EMAC has the option of sending only a single pause frame when
flow control is enabled and the RX queue is full.  Although sending
only one pause frame has little value, this would allow admins to
enable automatic flow control without having to worry about the EMAC
flooding nearby switches with pause frames if the kernel hangs.

The option is enabled by using the single-pause-mode private flag.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-ethtool.c
drivers/net/ethernet/qualcomm/emac/emac-mac.c
drivers/net/ethernet/qualcomm/emac/emac.c
drivers/net/ethernet/qualcomm/emac/emac.h