diff options
author | Thomas Petazzoni <[email protected]> | 2017-02-21 11:28:03 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-02-21 13:16:14 -0500 |
commit | f8b0d5f8cc10f43642f97db6b37d60d765cff34a (patch) | |
tree | 9040344d57573ac34f1ad4f45ca456e839279dca /scripts/gdb/linux/modules.py | |
parent | d63f9e41f981722b11f42ea2b19798c00fcae0f9 (diff) |
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 <[email protected]>
Acked-by: Russell King <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions