cxgb4 : retrieve port information from firmware
authorGanesh Goudar <ganeshgr@chelsio.com>
Fri, 19 May 2017 12:20:15 +0000 (17:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:30:29 +0000 (13:30 -0400)
commit2061ec3f1370d5491e801a693618af2b933781fe
tree22e758f7174e39a869f9af83c2ca827b8562b6cd
parent66aa0678efc29abd2ab02a09b23f9a8bc9f12a6c
cxgb4 : retrieve port information from firmware

issue get port information command to firmware to retrieve port
information and update if it is different from what was last
recorded and also add indication for supported link modes for
firmware port types FW_PORT_TYPE_SFP28, FW_PORT_TYPE_KR_SFP28,
FW_PORT_TYPE_CR4_QSFP.

Based on the original work by Casey Leedom <leedom@chelsio.com>

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h