diff options
| author | Jiri Pirko <[email protected]> | 2023-09-13 20:49:39 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-09-17 10:50:20 +0000 |
| commit | 5f18426928800c59fb0f9bc8fb0c182bb6f5ee24 (patch) | |
| tree | 686549a480eaf87f4eae934ca2a2890163bd9cf4 /drivers/net/ethernet/intel/ice/ice_common.h | |
| parent | dpll: netlink: Add DPLL framework base functions (diff) | |
| download | kernel-5f18426928800c59fb0f9bc8fb0c182bb6f5ee24.tar.gz kernel-5f18426928800c59fb0f9bc8fb0c182bb6f5ee24.zip | |
netdev: expose DPLL pin handle for netdevice
In case netdevice represents a SyncE port, the user needs to understand
the connection between netdevice and associated DPLL pin. There might me
multiple netdevices pointing to the same pin, in case of VF/SF
implementation.
Add a IFLA Netlink attribute to nest the DPLL pin handle, similar to
how it is implemented for devlink port. Add a struct dpll_pin pointer
to netdev and protect access to it by RTNL. Expose netdev_dpll_pin_set()
and netdev_dpll_pin_clear() helpers to the drivers so they can set/clear
the DPLL pin relationship to netdev.
Note that during the lifetime of struct dpll_pin the pin handle does not
change. Therefore it is save to access it lockless. It is drivers
responsibility to call netdev_dpll_pin_clear() before dpll_pin_put().
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: Arkadiusz Kubalewski <[email protected]>
Signed-off-by: Vadim Fedorenko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.h')
0 files changed, 0 insertions, 0 deletions
