aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2017-02-16 15:23:27 -0800
committerDavid S. Miller <[email protected]>2017-02-19 18:15:23 -0500
commitf5a57723371f11ff953c4ba71184dc00e65469fc (patch)
tree38f76e696c6934a7c0ff3500f9c36bd581ca4d51 /lib/string_helpers.c
parent1786dbf3702e33ce3afd2d3dbe630bd04b1d2e58 (diff)
mlx4: fix potential divide by 0 in mlx4_en_auto_moderation()
1) In the case where rate == priv->pkt_rate_low == priv->pkt_rate_high, mlx4_en_auto_moderation() does a divide by zero. 2) We want to properly change the moderation parameters if rx_frames was changed (like in ethtool -C eth0 rx-frames 16) Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: Saeed Mahameed <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions