]> 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)
commit4573587a805aedbe859cdf94b1d4fc0dac02ef60
treeb168b88e210385d7938f24e6f1bbef407fc60db3
parent4906e35e8c265d44cb4c7a41ea925f7c5ceba468
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