be2net: pass domain id to be_cmd_link_status_query
authorAjit Khaparde <ajit.khaparde@emulex.com>
Tue, 19 Apr 2011 12:11:46 +0000 (12:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 03:13:10 +0000 (20:13 -0700)
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c
drivers/net/benet/be_cmds.h
drivers/net/benet/be_ethtool.c
drivers/net/benet/be_main.c

index a94e98060c93d8aa8b9a18ff4569c6e841c6d42b..af8cf3d7c1e33337577fdff0f6c1ddea951b98b5 100644 (file)
@@ -1112,7 +1112,7 @@ err:
 
 /* Uses synchronous mcc */
 int be_cmd_link_status_query(struct be_adapter *adapter,
-                       bool *link_up, u8 *mac_speed, u16 *link_speed)
+                       bool *link_up, u8 *mac_speed, u16 *link_speed, u32 dom)
 {
        struct be_mcc_wrb *wrb;
        struct be_cmd_req_link_status *req;
index 3fb6e0a3ad7a594479e5fd74ede1e71ab414d240..af4bbff5feba2427b089076a3e503843daeff3e1 100644 (file)
@@ -1112,7 +1112,7 @@ extern int be_cmd_rxq_create(struct be_adapter *adapter,
 extern int be_cmd_q_destroy(struct be_adapter *adapter, struct be_queue_info *q,
                        int type);
 extern int be_cmd_link_status_query(struct be_adapter *adapter,
-                       bool *link_up, u8 *mac_speed, u16 *link_speed);
+                       bool *link_up, u8 *mac_speed, u16 *link_speed, u32 dom);
 extern int be_cmd_reset(struct be_adapter *adapter);
 extern int be_cmd_get_stats(struct be_adapter *adapter,
                        struct be_dma_mem *nonemb_cmd);
index 33c2beccaa8e01217e640d52e50059081136245c..6565f3e55b260a1315598d4e13c638e29a8c95c9 100644 (file)
@@ -376,7 +376,7 @@ static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
 
        if ((adapter->link_speed < 0) || (!(netdev->flags & IFF_UP))) {
                status = be_cmd_link_status_query(adapter, &link_up,
-                                               &mac_speed, &link_speed);
+                                               &mac_speed, &link_speed, 0);
 
                be_link_status_update(adapter, link_up);
                /* link_speed is in units of 10 Mbps */
@@ -661,7 +661,7 @@ be_self_test(struct net_device *netdev, struct ethtool_test *test, u64 *data)
        }
 
        if (be_cmd_link_status_query(adapter, &link_up, &mac_speed,
-                               &qos_link_speed) != 0) {
+                               &qos_link_speed, 0) != 0) {
                test->flags |= ETH_TEST_FL_FAILED;
                data[4] = -1;
        } else if (!mac_speed) {
index 1bb763cda3adbfdf5b0ad0cc53f5536ad4b0e2b5..77a6e7e4593c911c760981ff3e1275296731df9f 100644 (file)
@@ -2171,7 +2171,7 @@ static int be_open(struct net_device *netdev)
        be_async_mcc_enable(adapter);
 
        status = be_cmd_link_status_query(adapter, &link_up, &mac_speed,
-                       &link_speed);
+                       &link_speed, 0);
        if (status)
                goto err;
        be_link_status_update(adapter, link_up);