[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9eba43b1-347f-f66a-2eef-999e249b3661@quantenna.com>
Date: Mon, 12 Mar 2018 12:03:10 -0700
From: Igor Mitsyanko <igor.mitsyanko.os@...ntenna.com>
To: Stephen Hemminger <stephen@...workplumber.org>
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:32 AM, Stephen Hemminger wrote:
> Yes hardware devices may come it with different default values.
> But the user experience on Linux needs to be consistent.
>
> Instead, it makes more sense to me for each device driver using switchdev
> to program to the values that it sees in the bridge.
>
> Please revise this.
>
Right, it does change default user view, setting flags instead of
querying makes more sense then.
However there is a problem that switchdev may not support all flags that
bridge code sets by default. For example, looking at
spectrum_switchdev.c, it only advertises support for BR_LEARNING |
BR_FLOOD | BR_MCAST_FLOOD.
Currently, I assume that even though some flags are shown as set by
default on a new bridge port, some of them are not actually working in
switchdev?
Powered by blists - more mailing lists