OSDN Git Service

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)
commitf285f37cb1e6b29e7dc732c81510aa115463730f
tree89fb7ecc1f0c4de7c45ed3565344f714b8040739
parent5ada57a9a6b0be0e6dfcbd4afa519b0347fd5649
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