mlx4: Implement port type setting via devlink interface
authorJiri Pirko <jiri@mellanox.com>
Fri, 26 Feb 2016 16:32:25 +0000 (17:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 21:07:29 +0000 (16:07 -0500)
commitb2facd95ab965465373fc5ded7218c8c4fa8da7d
treed0a7fc913f93bcf1502d98fce970ca8dc42e9599
parent09d4d087cd4869859fcc5dfc692f0830550a1b48
mlx4: Implement port type setting via devlink interface

So far, there has been an mlx4-specific sysfs file allowing user to
change port type to either Ethernet of InfiniBand. This is very
inconvenient.

Allow to expose the same ability to set port type in a generic way
using devlink interface.

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