cxgb4: Fix decoding QSA module for ethtool get settings
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 17 Dec 2014 12:06:00 +0000 (17:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Dec 2014 17:39:16 +0000 (12:39 -0500)
QSA module was getting decoded as QSFP module in ethtool get settings, this
patch fixes it.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h

index 28d04153f9990797068218bc96afd484bb536c0c..c132d9030729d9e20f5f1051611fd35d46098128 100644 (file)
@@ -2376,7 +2376,7 @@ const char *t4_get_port_type_description(enum fw_port_type port_type)
                "KR/KX",
                "KR/KX/KX4",
                "R QSFP_10G",
-               "",
+               "R QSA",
                "R QSFP",
                "R BP40_BA",
        };
index 291b6f219708c946c5ad01c9bc0485d06dc7f19c..7c0aec85137a2acee4a892afc5ec14c16731a26e 100644 (file)
@@ -2470,8 +2470,8 @@ enum fw_port_type {
        FW_PORT_TYPE_BP_AP,
        FW_PORT_TYPE_BP4_AP,
        FW_PORT_TYPE_QSFP_10G,
-       FW_PORT_TYPE_QSFP,
        FW_PORT_TYPE_QSA,
+       FW_PORT_TYPE_QSFP,
        FW_PORT_TYPE_BP40_BA,
 
        FW_PORT_TYPE_NONE = FW_PORT_CMD_PTYPE_M