summaryrefslogtreecommitdiff
path: root/drivers/sfi
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-21 13:28:03 +0300
committerDavid S. Miller <davem@davemloft.net>2017-02-21 21:16:14 +0300
commitf8b0d5f8cc10f43642f97db6b37d60d765cff34a (patch)
tree9040344d57573ac34f1ad4f45ca456e839279dca /drivers/sfi
parentd63f9e41f981722b11f42ea2b19798c00fcae0f9 (diff)
downloadlinux-f8b0d5f8cc10f43642f97db6b37d60d765cff34a.tar.xz
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/sfi')
0 files changed, 0 insertions, 0 deletions