Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1647367
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net-next 17/20] net: dsa: add notifier for ageing time |
| Date | 2017-05-22 22:50 +0200 |
| Message-ID | <tK2r7-1WA-1@gated-at.bofh.it> (permalink) |
| References | <tIXjP-7UF-3@gated-at.bofh.it> <tIXjP-7UF-5@gated-at.bofh.it> <tK1lo-1kI-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Florian,
Florian Fainelli <f.fainelli@gmail.com> writes:
> On 05/19/2017 02:00 PM, Vivien Didelot wrote:
>> This patch keeps the port-wide ageing time handling code in
>> dsa_port_ageing_time, pushes the requested ageing time value in a new
>> switch fabric notification, and moves the switch-wide ageing time
>> handling code in dsa_switch_ageing_time.
>>
>> This has the effect that now not only the switch that the target port
>> belongs to can be programmed, but all switches composing the switch
>> fabric. For the moment, keep the current behavior and ignore other
>> switches.
>>
>> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
>
> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
>
>> ---
>> net/dsa/dsa_priv.h | 8 ++++++++
>> net/dsa/port.c | 37 ++++++++-----------------------------
>> net/dsa/switch.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 62 insertions(+), 29 deletions(-)
>>
>> diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
>> index c19241eb094b..becaf8a61b13 100644
>> --- a/net/dsa/dsa_priv.h
>> +++ b/net/dsa/dsa_priv.h
>> @@ -17,10 +17,18 @@
>> #include <net/dsa.h>
>>
>> enum {
>> + DSA_NOTIFIER_AGEING_TIME,
>> DSA_NOTIFIER_BRIDGE_JOIN,
>> DSA_NOTIFIER_BRIDGE_LEAVE,
>
> This is so we keep sorting notifier events alphabetically, right?
Correct. Thanks for your reviews and test!
Vivien
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH net-next 17/20] net: dsa: add notifier for ageing time Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-05-19 23:10 +0200
Re: [PATCH net-next 17/20] net: dsa: add notifier for ageing time Florian Fainelli <f.fainelli@gmail.com> - 2017-05-22 21:40 +0200
Re: [PATCH net-next 17/20] net: dsa: add notifier for ageing time Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-05-22 22:50 +0200
csiph-web