]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Prevent port_type_set() callback when it's not needed
authorElad Raz <eladr@mellanox.com>
Sun, 23 Oct 2016 15:43:05 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Oct 2016 21:30:32 +0000 (17:30 -0400)
commitcf20a9f890031cef202f77d613161ac0bd156ca7
treeb8b023d22324234adc9827335650404d79995774
parent3b2486097a7c2ba38f12d9ebf485fc79647e4528
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: Elad Raz <eladr@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c