net: renesas: rswitch: Use hardware pause features
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 8 Jun 2023 02:20:07 +0000 (11:20 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2023 18:49:18 +0000 (19:49 +0100)
commitc87bd91e34e1593584c3b309e8fead833c985855
treea46037507126c24214fbb9cfbacdd29386901283
parentdc510c6d2ecfff1faaf95b642c5fc01c86d6fdff
net: renesas: rswitch: Use hardware pause features

Since this driver used the "global rate limiter" feature of GWCA,
the TX performance of each port was reduced when multiple ports
transmitted frames simultaneously. To improve performance, remove
the use of the "global rate limiter" feature and use "hardware pause"
features of the following:
 - "per priority pause" of GWCA
 - "global pause" of COMA

Note that these features are not related to the ethernet PAUSE frame.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/rswitch.c
drivers/net/ethernet/renesas/rswitch.h