summaryrefslogtreecommitdiffstats
path: root/samples/ftrace
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-09-13 09:12:39 +0200
committerDavid S. Miller <davem@davemloft.net>2023-09-17 15:01:47 +0200
commit0b7a2721e36c11313f8b0f251a508d25a872cd28 (patch)
tree001cedc27c5bf95176403b45f5620f0c8393207f /samples/ftrace
parentdevlink: introduce object and nested devlink relationship infra (diff)
downloadlinux-0b7a2721e36c11313f8b0f251a508d25a872cd28.tar.xz
linux-0b7a2721e36c11313f8b0f251a508d25a872cd28.zip
devlink: expose peer SF devlink instance
Introduce a new helper devl_port_fn_devlink_set() to be used by driver assigning a devlink instance to the peer devlink port function. Expose this to user over new netlink attribute nested under port function nest to expose devlink handle related to the port function. This is particularly helpful for user to understand the relationship between devlink instances created for SFs and the port functions they belong to. Note that caller of devlink_port_notify() needs to hold devlink instance lock, put the assertion to devl_port_fn_devlink_set() to make this requirement explicit. Also note the limitations that only allow to make this assignment for registered objects. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/ftrace')
0 files changed, 0 insertions, 0 deletions