Skip to content
Commit 6edf1017 authored by Elad Raz's avatar Elad Raz Committed by David S. Miller
Browse files

devlink: Prevent port_type_set() callback when it's not needed



When a port_type_set() is been called and the new port type set is the same
as the old one, just return success.

Signed-off-by: default avatarElad Raz <eladr@mellanox.com>
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 89ab88b0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment