summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aurora
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-21 11:28:03 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-21 19:16:14 +0100
commitf8b0d5f8cc10f43642f97db6b37d60d765cff34a (patch)
tree9040344d57573ac34f1ad4f45ca456e839279dca /drivers/net/ethernet/aurora
parentnet: mvpp2: remove useless arguments in mvpp2_rx_{pkts, time}_coal_set (diff)
downloadlinux-f8b0d5f8cc10f43642f97db6b37d60d765cff34a.tar.xz
linux-f8b0d5f8cc10f43642f97db6b37d60d765cff34a.zip
net: mvpp2: handle too large value handling in mvpp2_rx_pkts_coal_set()
Currently, mvpp2_rx_pkts_coal_set() does the following to avoid setting a too large value for the RX coalescing by packet number: val = (pkts & MVPP2_OCCUPIED_THRESH_MASK); This means that if you set a value that is slightly higher the the maximum number of packets, you in fact get a very low value. It makes a lot more sense to simply check if the value is too high, and if it's too high, limit it to the maximum possible value. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aurora')
0 files changed, 0 insertions, 0 deletions