Tobias Waldekranz
cc76ce9e8d
net: dsa: Add helper to resolve bridge port from DSA port
...
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 the case of an offloaded lag, this will be the bond or team
interface, e.g. bond0 in this example:
br0
/
bond0
/ \
swp0 swp1
Add a helper that hides some of this complexity from the
drivers. Then, redefine dsa_port_offloads_bridge_port using the helper
to avoid double accounting of the set of possible offloaded uppers.
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com >
Reviewed-by: Vladimir Oltean <olteanv@gmail.com >
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2021-03-18 16:24:06 -07:00
..
2020-11-19 17:21:34 +01:00
2021-02-01 17:04:17 +01:00
2020-09-29 14:02:53 -07:00
2021-01-28 20:36:21 -08:00
2021-02-15 18:17:15 +01:00
2021-02-02 17:45:59 -08:00
2020-12-04 17:47:35 -08:00
2020-11-05 14:27:30 -08:00
2021-03-13 14:18:09 -08:00
2020-02-28 14:51:30 +01:00
2021-02-16 17:51:13 -08:00
2020-08-18 15:58:53 -07:00
2020-08-20 18:21:28 +01:00
2020-02-28 12:12:53 -08:00
2020-07-21 18:30:47 -07:00
2020-05-01 12:15:37 -07:00
2021-01-18 20:48:40 -08:00
2020-11-12 18:39:28 -08:00
2020-12-01 15:51:19 +01:00
2021-02-12 09:33:34 +01:00
2020-02-29 14:39:08 +01:00
2020-08-20 15:45:15 -04:00
2020-07-15 07:45:24 -07:00
2020-03-27 19:40:38 -07:00
2020-11-23 13:31:54 -08:00
2021-02-11 13:04:49 -08:00
2020-02-29 21:52:20 -08:00
2021-03-18 16:24:06 -07:00
2020-05-08 21:33:33 -07:00
2021-02-03 14:51:40 -08:00
2020-05-05 13:23:29 -07:00
2020-02-19 13:52:32 +01:00
2020-04-20 07:34:16 +02:00
2020-07-28 17:42:31 -07:00
2021-03-14 14:46:32 -07:00
2021-03-13 14:18:09 -08:00
2020-11-23 18:36:21 -05:00
2021-01-21 13:33:45 +01:00
2021-01-21 13:33:45 +01:00
2021-02-12 16:31:46 -08:00
2021-01-29 20:39:14 -08:00
2021-02-04 18:37:57 -08:00
2020-06-22 21:12:44 -07:00
2021-02-23 11:29:52 -08:00
2020-11-06 11:01:01 +01:00
2020-05-11 13:18:54 -07:00
2020-03-30 13:45:04 -07:00
2021-01-27 18:18:15 -08:00
2021-01-29 22:48:30 -08:00
2020-12-14 18:38:58 -08:00
2020-12-12 15:08:54 -08:00
2020-11-23 16:32:33 -08:00
2020-08-26 07:33:19 -07:00
2020-06-20 17:47:53 -07:00
2021-02-08 16:47:03 -08:00
2021-01-26 18:39:45 -08:00
2021-02-08 16:47:03 -08:00
2020-11-19 19:08:46 -08:00
2021-02-04 18:37:57 -08:00
2020-11-10 17:56:54 -08:00
2020-11-19 10:49:50 -08:00
2020-08-31 12:26:39 -07:00
2021-03-11 16:09:21 -08:00
2020-02-05 14:28:09 +01:00
2020-06-20 17:22:22 -07:00
2021-01-26 17:53:45 -08:00
2020-03-29 22:30:57 -07:00
2021-01-26 11:55:50 +01:00
2020-03-26 20:17:36 -07:00
2020-03-02 11:16:27 -08:00
2020-02-29 21:52:20 -08:00
2020-02-28 12:08:37 -08:00
2020-05-29 21:20:20 -07:00
2021-03-12 17:47:45 -08:00
2020-08-24 06:40:07 -07:00
2020-11-13 14:24:39 -08:00
2021-02-11 14:10:07 -08:00
2020-11-16 08:08:54 -08:00
2021-03-11 16:13:00 -08:00
2020-11-14 02:29:00 +01:00
2020-03-04 13:25:55 -08:00
2021-01-22 20:41:29 -08:00
2021-03-10 12:45:16 -08:00
2021-03-14 15:00:43 -07:00
2020-12-28 14:52:54 -08:00
2020-07-31 09:24:23 +02:00
2020-08-24 14:35:00 -07:00
2020-11-23 18:36:21 -05:00
2020-06-23 20:27:09 -07:00
2021-03-13 14:18:09 -08:00
2020-07-13 11:03:44 -07:00
2020-06-04 15:39:32 -07:00
2020-09-28 15:19:03 -07:00
2020-02-29 21:52:19 -08:00
2021-02-16 13:14:06 -08:00
2021-02-16 14:47:46 -08:00
2021-02-26 12:28:03 -08:00
2020-11-27 18:25:27 -08:00
2020-06-23 20:10:15 -07:00
2020-06-18 20:46:23 -07:00
2021-02-04 18:37:14 -08:00
2021-02-26 12:28:03 -08:00
2020-09-14 16:49:39 -07:00
2020-11-17 22:07:40 +01:00
2021-03-10 01:06:34 +01:00
2021-02-04 01:00:07 +01:00
2020-10-05 18:40:01 -07:00
2020-12-18 16:10:21 +01:00