Florian Fainelli
d6abc59694
net: Introduce ndo_get_port_parent_id()
...
In preparation for getting rid of switchdev_ops, create a dedicated NDO
operation for getting the port's parent identifier. There are
essentially two classes of drivers that need to implement getting the
port's parent ID which are VF/PF drivers with a built-in switch, and
pure switchdev drivers such as mlxsw, ocelot, dsa etc.
We introduce a helper function: dev_get_port_parent_id() which supports
recursion into the lower devices to obtain the first port's parent ID.
Convert the bridge, core and ipv4 multicast routing code to check for
such ndo_get_port_parent_id() and call the helper function when valid
before falling back to switchdev_port_attr_get(). This will allow us to
convert all relevant drivers in one go instead of having to implement
both switchdev_port_attr_get() and ndo_get_port_parent_id() operations,
then get rid of switchdev_port_attr_get().
Acked-by: Jiri Pirko <jiri@mellanox.com >
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com >
Reviewed-by: Ido Schimmel <idosch@mellanox.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-02-06 14:16:11 -08:00
..
2019-02-06 09:36:36 -08:00
2019-01-07 22:47:48 +01:00
2019-01-01 15:45:48 -08:00
2018-12-28 20:54:57 -08:00
2019-01-22 20:21:57 -08:00
2018-12-28 20:00:21 -08:00
2019-01-15 06:24:36 +12:00
2018-12-28 14:57:10 -08:00
2018-12-28 16:52:18 -08:00
2018-12-28 20:54:57 -08:00
2019-01-18 15:02:34 +01:00
2019-01-12 21:07:14 -08:00
2019-01-17 11:31:24 -08:00
2018-12-28 20:22:45 -08:00
2019-01-28 10:58:41 -08:00
2019-01-21 11:15:36 +01:00
2018-12-28 16:52:18 -08:00
2019-01-02 16:35:23 -08:00
2018-12-25 15:01:46 -08:00
2019-01-22 14:39:38 -07:00
2019-01-05 13:18:59 -08:00
2019-01-24 11:11:45 -07:00
2018-12-21 08:47:05 -07:00
2018-12-28 14:48:06 -08:00
2019-01-31 10:13:21 +01:00
2019-02-01 20:55:38 +01:00
2019-01-31 10:32:01 +01:00
2019-02-01 20:55:39 +01:00
2019-01-11 18:05:41 -08:00
2019-02-01 20:55:38 +01:00
2019-01-04 13:13:45 -08:00
2018-12-28 12:11:43 -08:00
2019-01-09 11:36:41 +01:00
2019-01-21 07:23:42 +13:00
2019-01-09 11:36:41 +01:00
2019-01-09 11:36:41 +01:00
2018-12-23 11:52:45 +08:00
2019-01-04 09:02:17 +01:00
2019-01-08 07:58:49 -05:00
2019-01-06 09:46:51 +09:00
2019-01-02 09:43:14 -08:00
2019-02-06 10:38:26 -08:00
2019-01-16 17:42:35 +01:00
2019-01-31 10:31:53 +01:00
2018-12-28 16:55:46 -08:00
2018-12-31 11:46:59 -08:00
2019-01-04 13:13:46 -08:00
2018-12-28 12:11:52 -08:00
2019-01-16 14:29:48 +01:00
2018-12-28 12:11:47 -08:00
2018-12-28 12:11:52 -08:00
2018-12-28 12:11:50 -08:00
2019-01-09 14:20:47 -05:00
2019-01-24 22:45:34 -08:00
2019-02-03 12:11:12 -08:00
2019-01-22 17:18:09 -08:00
2019-01-18 00:18:45 +01:00
2019-01-22 17:18:08 -08:00
2019-01-22 17:18:08 -08:00
2019-01-06 09:46:51 +09:00
2019-01-06 09:46:51 +09:00
2018-12-28 12:11:44 -08:00
2019-01-04 13:13:47 -08:00
2018-12-26 17:03:51 -08:00
2018-12-30 08:33:06 +00:00
2018-12-26 17:03:51 -08:00
2018-12-21 11:28:22 +01:00
2018-12-25 14:52:50 -08:00
2019-01-21 09:57:43 -08:00
2018-12-21 11:50:02 -05:00
2018-12-21 22:31:26 -06:00
2018-12-21 22:31:26 -06:00
2018-12-28 12:11:49 -08:00
2018-12-28 12:11:48 -08:00
2018-12-28 12:11:50 -08:00
2018-12-28 12:11:52 -08:00
2018-12-28 12:11:51 -08:00
2019-01-04 13:13:48 -08:00
2019-01-04 13:13:48 -08:00
2018-12-28 12:11:50 -08:00
2019-01-08 17:15:11 -08:00
2018-12-25 12:26:34 -08:00
2019-01-09 10:35:56 +01:00
2019-02-06 14:16:11 -08:00
2019-01-06 09:46:51 +09:00
2019-01-28 11:32:58 +01:00
2019-01-06 09:46:51 +09:00
2019-01-19 10:09:58 -08:00
2019-01-10 16:24:44 -06:00
2018-12-28 12:11:48 -08:00
2018-12-28 12:11:44 -08:00
2018-12-28 12:11:50 -08:00
2018-12-28 12:11:46 -08:00
2018-12-28 12:11:51 -08:00
2018-12-28 12:11:48 -08:00
2019-01-05 17:57:34 -08:00
2019-01-08 07:58:37 -05:00
2019-01-05 17:57:34 -08:00
2019-02-04 18:33:36 -08:00
2019-02-06 09:52:43 -08:00
2019-01-04 12:19:40 +01:00
2019-01-04 13:13:46 -08:00
2019-01-01 11:58:33 -08:00
2019-01-10 17:04:45 -06:00
2019-01-03 18:57:57 -08:00
2019-01-07 16:38:26 +01:00
2019-01-16 05:13:36 +12:00
2018-12-21 11:50:02 -05:00
2019-02-03 11:17:31 -08:00
2018-12-28 12:11:44 -08:00
2018-12-29 11:21:49 -08:00
2019-02-03 11:17:31 -08:00
2018-12-22 22:50:29 -05:00
2018-12-28 12:11:47 -08:00
2019-01-02 09:48:13 -08:00
2019-01-04 12:56:09 -08:00
2019-01-11 18:05:40 -08:00
2019-01-14 20:15:17 -05:00
2018-12-28 12:11:51 -08:00
2018-12-22 12:15:29 +01:00
2019-01-17 07:19:42 -05:00
2018-12-28 12:11:46 -08:00