[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5f3c4e75-b611-ffbd-1aaa-6ee41c5c513e@quantenna.com>
Date: Mon, 12 Mar 2018 11:44:14 -0700
From: Igor Mitsyanko <igor.mitsyanko.os@...ntenna.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: bridge@...ts.linux-foundation.org, netdev@...r.kernel.org,
sergey.matyukevich.os@...ntenna.com, smaksimenko@...ntenna.com,
ashevchenko@...ntenna.com, dlebed@...ntenna.com, jiri@...nulli.us,
ivecera@...hat.com
Subject: Re: [PATCH net-next 1/5] bridge: initialize port flags with switchdev
defaults
On 03/10/2018 08:30 AM, Andrew Lunn wrote:
>> +
>> + ret = switchdev_port_attr_get(dev, &attr);
>> + if (ret)
>> + return BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD;
>
>
> Hi Igor
>
> Please check if ret == -EOPNOTSUPP and only then use the defaults. A
> real error should be propagated, causing new_nbp to fail. You might
> also consider what to do when ENODATA is returned.
>
> Andrew
>
Hi Andrew,
ok, will change it so an error is propagated.
There is one more comment from Stephen suggesting that flags must be set
in switchdev, rather then queried: this approach should take care about
ENODATA I assume.
Powered by blists - more mailing lists