]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: minimal: Add ethtool support
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 3 Mar 2019 09:12:10 +0000 (09:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 06:23:00 +0000 (22:23 -0800)
commit4c3b3ab2d5334af3dcf3391198a785c0e03ac463
tree96b6f146f4e0ddf2c3f45a2b54e5369ff98bd819
parentf28a3abc9912495eb84d71b5b53485126181bffd
mlxsw: minimal: Add ethtool support

The minimal driver is chip independent and uses I2C bus for chip access.
Its purpose is to support chassis management on systems equipped with
Mellanox switch ASICs. For example from BMC (Board Management
Controller) device.

Expose a dummy netdev for each front panel port and implement basic
ethtool operations to obtain QSFP/SFP module info through ethtool.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/minimal.c