]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: append split port number to the port name
authorJiri Pirko <jiri@nvidia.com>
Thu, 27 May 2021 10:48:19 +0000 (12:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 May 2021 21:21:12 +0000 (14:21 -0700)
commitc0827671994a3fa00cc7afd8f88f4884f21ae305
tree89fb7ecc1f0c4de7c45ed3565344f714b8040739
parent8a80052a7169434f9739a7f74275e6922ec4c63a
devlink: append split port number to the port name

Instead of doing sprintf twice in case the port is split or not, append
the split port suffix in case the port is split.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20210527104819.789840-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c