Thread (22 messages) flat view 22 messages, 4 authors, 2017-02-19

Re: [PATCH net] mlx4: fix potential divide by 0 in mlx4_en_auto_moderation()

From: Saeed Mahameed <hidden>
Date: 2017-02-19 22:21:40

On Fri, Feb 17, 2017 at 1:23 AM, Eric Dumazet [off-list ref] wrote:
From: Eric Dumazet <edumazet@google.com>

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 <edumazet@google.com>
Reviewed-by: Saeed Mahameed <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help