]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/net/ethernet/qualcomm/emac/emac-mac.c
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)
commit4a7a3860caac1a8779e8c459d8abe21b111798d6
tree68e429f47ac1b4701cef27857e092511c34d1ecc
parent0ab09befdbb7ca9b969d6206108629ddff43876e
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