mlx4: Implement devlink interface
authorJiri Pirko <jiri@mellanox.com>
Fri, 26 Feb 2016 16:32:24 +0000 (17:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 21:07:29 +0000 (16:07 -0500)
commit09d4d087cd4869859fcc5dfc692f0830550a1b48
treebfcf5d70a2e2f8b24c7a94d9776daf92c0a1ee69
parentbfcd3a46617209454cfc0947ab093e37fd1e84ef
mlx4: Implement devlink interface

Implement newly introduced devlink interface. Add devlink port instances
for every port and set the port types accordingly.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
v2->v3:
-add dev param to devlink_register (api change)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/intf.c
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
include/linux/mlx4/driver.h