]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Keep congestion group taildrop enabled when PFC on
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sat, 30 May 2020 21:08:14 +0000 (00:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 19:04:32 +0000 (12:04 -0700)
commitefc8783a76bc6881a9b931db27c560a673dbf845
treeb168b88e210385d7938f24e6f1bbef407fc60db3
parentc3e53fd517478c174e9bbb0485ceed6f2aeaf765
dpaa2-eth: Keep congestion group taildrop enabled when PFC on

Leave congestion group taildrop enabled for all traffic classes
when PFC is enabled. Notification threshold is low enough such
that it will be hit first and this also ensures that FQs on
traffic classes which are not PFC enabled won't drain the buffer
pool.

FQ taildrop threshold is kept disabled as long as any form of
flow control is on. Since FQ taildrop works with bytes, not number
of frames, we can't guarantee it will not interfere with the
congestion notification mechanism for all frame sizes.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-dcb.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h