diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-05-23 15:38:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-24 12:34:26 +0300 |
commit | 9277649c66fe7cb0e2f8adb09621556bcfb052c7 (patch) | |
tree | 60b58207fb829af1dc46d492864ffea60464aab5 /scripts/generate_rust_target.rs | |
parent | 1bb1b57898504da4e10d48b901556278e161c7fd (diff) | |
download | linux-9277649c66fe7cb0e2f8adb09621556bcfb052c7.tar.xz |
devlink: pass devlink_port pointer to ops->port_del() instead of index
Historically there was a reason why port_dev() along with for example
port_split() did get port_index instead of the devlink_port pointer.
With the locking changes that were done which ensured devlink instance
mutex is hold for every command, the port ops could get devlink_port
pointer directly. Change the forgotten port_dev() op to be as others
and pass devlink_port pointer instead of port_index.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions