devlink: introduce a helper to generate physical port names
authorJiri Pirko <jiri@mellanox.com>
Fri, 18 May 2018 07:29:02 +0000 (09:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2018 20:30:39 +0000 (16:30 -0400)
commit08474c1a9df0cefcc3d197bd1d770695a34b9d60
treead98306122c9ff54630c0d29e3141f26e690e53b
parent5ec1380a21bb6cd2ba89e31c44dfcc150f9ef792
devlink: introduce a helper to generate physical port names

Each driver implements physical port name generation by itself. However
as devlink has all needed info, it can easily do the job for all its
users. So implement this helper in devlink.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c