bnx2x: added cpu_to_le16 when preparing ramrod's data
authorAriel Elior <ariele@broadcom.com>
Mon, 12 Mar 2012 11:22:05 +0000 (11:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Mar 2012 00:01:25 +0000 (17:01 -0700)
Fixed endianess issue when passing arguments to FW.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c

index cb6339c35571f6a9d86b85d92324fb4680b80406..94110e9ce51d89d9ba19ffd7e8ed6adc47cb5a06 100644 (file)
@@ -5601,7 +5601,7 @@ static inline int bnx2x_func_send_start(struct bnx2x *bp,
 
        /* Fill the ramrod data with provided parameters */
        rdata->function_mode = cpu_to_le16(start_params->mf_mode);
-       rdata->sd_vlan_tag   = start_params->sd_vlan_tag;
+       rdata->sd_vlan_tag   = cpu_to_le16(start_params->sd_vlan_tag);
        rdata->path_id       = BP_PATH(bp);
        rdata->network_cos_mode = start_params->network_cos_mode;
 
This page took 0.029071 seconds and 5 git commands to generate.