]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: felix: fix incorrect clamp calculation for burst
authorColin Ian King <colin.king@canonical.com>
Thu, 14 May 2020 18:33:02 +0000 (19:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2020 01:02:02 +0000 (18:02 -0700)
commit2b390a86c2a7e6f62d61a9de6b3a7b88ff21f287
treed16a4680d0641773760eda46f96625de793284e9
parent6114f1a2ca1d82d1f97d430afaea686ebb1a4834
net: dsa: felix: fix incorrect clamp calculation for burst

Currently burst is clamping on rate and not burst, the assignment
of burst from the clamping discards the previous assignment of burst.
This looks like a cut-n-paste error from the previous clamping
calculation on ramp.  Fix this by replacing ramp with burst.

Addresses-Coverity: ("Unused value")
Fixes: d2393e266913 ("net: dsa: felix: add support Credit Based Shaper(CBS) for hardware offload")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix_vsc9959.c