Re: [PATCH v2 net-next 1/8] net: dsa: Add helper to resolve bridge port from DSA port

2021-03-18 Thread Florian Fainelli
On 3/18/2021 7:15 AM, Tobias Waldekranz wrote: > In order for a driver to be able to query a bridge for information > about itself, e.g. reading out port flags, it has to use a netdev that > is known to the bridge. In the simple case, that is just the netdev > representing the port, e.g. swp0 or

Re: [PATCH v2 net-next 1/8] net: dsa: Add helper to resolve bridge port from DSA port

2021-03-18 Thread Vladimir Oltean
On Thu, Mar 18, 2021 at 03:15:43PM +0100, Tobias Waldekranz wrote: > In order for a driver to be able to query a bridge for information > about itself, e.g. reading out port flags, it has to use a netdev that > is known to the bridge. In the simple case, that is just the netdev > representing the p

[PATCH v2 net-next 1/8] net: dsa: Add helper to resolve bridge port from DSA port

2021-03-18 Thread Tobias Waldekranz
In order for a driver to be able to query a bridge for information about itself, e.g. reading out port flags, it has to use a netdev that is known to the bridge. In the simple case, that is just the netdev representing the port, e.g. swp0 or swp1 in this example: br0 / \ swp0 swp1 But in th