summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-05-23 15:38:01 +0300
committerDavid S. Miller <davem@davemloft.net>2023-05-24 12:34:26 +0300
commit9277649c66fe7cb0e2f8adb09621556bcfb052c7 (patch)
tree60b58207fb829af1dc46d492864ffea60464aab5 /virt
parent1bb1b57898504da4e10d48b901556278e161c7fd (diff)
downloadlinux-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 'virt')
0 files changed, 0 insertions, 0 deletions