Skip to content

Commit

Permalink
bnx2x: added cpu_to_le16 when preparing ramrod's data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ariel Elior authored and davem330 committed Mar 13, 2012
1 parent db0ea84 commit ab4a713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
Expand Up @@ -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;

Expand Down

0 comments on commit ab4a713

Please sign in to comment.