# Re: \[PATCH net-next v3 06/12\] mscc: ocelot: Implement ndo\_get\_port\_parent\_id()

- From: Jiri Pirko \<jiri@resnulli.us\>
- Date: 2019-02-06 13:25:34 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/02/5505236
- Thread: https://ratatoskr.run/netdev/2019/02/5504782/t.md

```text
Wed, Feb 06, 2019 at 12:53:20AM CET, f.fainelli@gmail.com wrote:
>Ocelot only supports SWITCHDEV_ATTR_ID_PORT_PARENT_ID as a valid
>switchdev attribute getter, convert it to use ndo_get_port_parent_id()
>and get rid of the switchdev_ops::switchdev_port_attr_get altogether.
>
>Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Acked-by: Jiri Pirko <redacted>
```
