Re: [PATCH net] net: ipv4: avoid mixed n_redirects and rate_tokens usage

2019-10-04 Thread David Miller
From: Paolo Abeni Date: Fri, 4 Oct 2019 15:11:17 +0200 > Since commit c09551c6ff7f ("net: ipv4: use a dedicated counter > for icmp_v4 redirect packets") we use 'n_redirects' to account > for redirect packets, but we still use 'rate_tokens' to compute > the redirect packets exponential backoff. >

Re: [PATCH net] net: ipv4: avoid mixed n_redirects and rate_tokens usage

2019-10-04 Thread Lorenzo Bianconi
> Since commit c09551c6ff7f ("net: ipv4: use a dedicated counter > for icmp_v4 redirect packets") we use 'n_redirects' to account > for redirect packets, but we still use 'rate_tokens' to compute > the redirect packets exponential backoff. > > If the device sent to the relevant peer any ICMP error

[PATCH net] net: ipv4: avoid mixed n_redirects and rate_tokens usage

2019-10-04 Thread Paolo Abeni
Since commit c09551c6ff7f ("net: ipv4: use a dedicated counter for icmp_v4 redirect packets") we use 'n_redirects' to account for redirect packets, but we still use 'rate_tokens' to compute the redirect packets exponential backoff. If the device sent to the relevant peer any ICMP error packet afte