]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Return physical port fields only for applicable port flavours
authorParav Pandit <parav@mellanox.com>
Tue, 9 Jul 2019 04:17:36 +0000 (23:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 19:02:13 +0000 (12:02 -0700)
commite7b3a01f949e71638f9d95b7a1ef7a2ad407f881
tree1eab6fbb7646f158ed71f56702b9fd9aab2c4fd1
parentecc0fc2e047ed0cae9de7206bf171cac4f1cc861
devlink: Return physical port fields only for applicable port flavours

Physical port number and split group fields are applicable only to
physical port flavours such as PHYSICAL, CPU and DSA.
Hence limit returning those values in netlink response to such port
flavours.

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