netdevsim: implement ndo_get_devlink_port
authorJiri Pirko <jiri@mellanox.com>
Thu, 25 Apr 2019 13:59:56 +0000 (15:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 05:52:03 +0000 (01:52 -0400)
commita62fdbbe9403ed4a645529f72eabc2c4c6225bd5
treef88904011329e2ebd0a12f14d22fa7a3e620e8a7
parente05b2d141fef22cfac1928cf0eb6890e5dae4216
netdevsim: implement ndo_get_devlink_port

Implement ndo_get_devlink_port and allow switch_id and port_name to be
handled by devlink.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/netdev.c