On 1/27/2021 4:52 PM, Andrew Lunn wrote:
> On Thu, Jan 28, 2021 at 02:50:14AM +0200, Vladimir Oltean wrote:
>> On Thu, Jan 28, 2021 at 01:46:30AM +0100, Andrew Lunn wrote:
>>>> + case NETDEV_GOING_DOWN: {
>>>> + struct dsa_port *dp, *cpu_dp;
>>>> + struct dsa_switch_tree *dst;
>>>> + int err = 0;
>>>> +
>>>> + if (!netdev_uses_dsa(dev))
>>>> + return NOTIFY_DONE;
>>>> +
>>>> + cpu_dp = dev->dsa_ptr;
>>>> + dst = cpu_dp->ds->dst;
>>>> +
>>>> + list_for_each_entry(dp, &dst->ports, list) {
>>>> + if (!dsa_is_user_port(dp->ds, dp->index)) {
>>>
>>> !dsa_is_user_port() ??
>>>
>>> That ! seems odd.
>>
>> Oops, that's something that I refactored at the last minute after I
>> prototyped the idea from:
>> if (!dsa_is_user_port(dp->ds, dp->index))
>> continue;
>> because it looked uglier that way.
>
> I was guessing it would be something like that. With that fixed:
>
> Reviewed-by: Andrew Lunn <[email protected]>
When you fix it:
Reviewed-by: Florian Fainelli <[email protected]>
--
Florian
- [PATCH net-next 4/4] Revert "net: ipv4: handle DSA e... Vladimir Oltean
- Re: [PATCH net-next 4/4] Revert "net: ipv4: han... Andrew Lunn
- Re: [PATCH net-next 4/4] Revert "net: ipv4: han... Florian Fainelli
- [PATCH net-next 3/4] Revert "net: Have netpoll bring... Vladimir Oltean
- Re: [PATCH net-next 3/4] Revert "net: Have netp... Andrew Lunn
- Re: [PATCH net-next 3/4] Revert "net: Have netp... Florian Fainelli
- [PATCH net-next 2/4] net: dsa: automatically bring user p... Vladimir Oltean
- Re: [PATCH net-next 2/4] net: dsa: automatically bri... Andrew Lunn
- Re: [PATCH net-next 2/4] net: dsa: automatically... Vladimir Oltean
- Re: [PATCH net-next 2/4] net: dsa: automatic... Andrew Lunn
- Re: [PATCH net-next 2/4] net: dsa: autom... Florian Fainelli
- [PATCH net-next 1/4] net: dsa: automatically bring up DSA... Vladimir Oltean
- Re: [PATCH net-next 1/4] net: dsa: automatically bri... Andrew Lunn
- Re: [PATCH net-next 1/4] net: dsa: automatically bri... Florian Fainelli
- Re: [PATCH net-next 0/4] Automatically manage DSA master ... Florian Fainelli
- Re: [PATCH net-next 0/4] Automatically manage DSA ma... Vladimir Oltean
- Re: [PATCH net-next 0/4] Automatically manage DS... Florian Fainelli
