qlcnic: Fix LED/Beaconing tests to work on all ports of an adapter.
authorHimanshu Madhani <himanshu.madhani@qlogic.com>
Fri, 25 Jan 2013 10:20:38 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jan 2013 06:00:08 +0000 (01:00 -0500)
Provide port number in command payload for LED/Beaconing tests.

Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c

index 186fe6e6eaaaa05bba98d986232e3cb1ecf2d14d..30be026102c8d7407266c0313f5b22a4c5bbc867 100644 (file)
@@ -1380,7 +1380,7 @@ int qlcnic_82xx_config_led(struct qlcnic_adapter *adapter, u32 state, u32 rate)
        word = QLCNIC_H2C_OPCODE_CONFIG_LED | ((u64)adapter->portnum << 16);
        req.req_hdr = cpu_to_le64(word);
 
-       req.words[0] = cpu_to_le64((u64)rate << 32);
+       req.words[0] = cpu_to_le64(((u64)rate << 32) | adapter->portnum);
        req.words[1] = cpu_to_le64(state);
 
        rv = qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1);