]> 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)
commitc574f8f7c8c5935469aad69254ffcddd86e03c74
tree89fb7ecc1f0c4de7c45ed3565344f714b8040739
parent9ae265ed546621b72e7ae1dad4c0fe7a4f2a5d9f
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