mlxsw: core: Add port type (Eth/IB) set API
authorElad Raz <eladr@mellanox.com>
Fri, 28 Oct 2016 19:35:58 +0000 (21:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 20:50:17 +0000 (16:50 -0400)
commit0c81ea5db25986fb2a704105db454a790c59709c
tree4126b3d6ce255769addab4d8b2886c5c20a887d8
parentd808c7e490350c51a883dec65c4f47e9c5cad79f
mlxsw: core: Add port type (Eth/IB) set API

Add "port_type_set" API to mlxsw core. The core layer send the change type
callback to the port along with it's private information.

Signed-off-by: Elad Raz <eladr@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/mellanox/mlxsw/core.h