From: Ajit Khaparde Date: Fri, 11 Feb 2011 13:33:02 +0000 (+0000) Subject: be2net: endianness fix in be_cmd_set_qos(). X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6bff57a7a6b97f2bf98cb96e56db1ec02a29d135;p=openwrt%2Fstaging%2Fblogic.git be2net: endianness fix in be_cmd_set_qos(). Signed-off-by: Ajit Khaparde Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index a179cc6d79f2..d3b671d9e027 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -1868,8 +1868,8 @@ int be_cmd_set_qos(struct be_adapter *adapter, u32 bps, u32 domain) OPCODE_COMMON_SET_QOS, sizeof(*req)); req->hdr.domain = domain; - req->valid_bits = BE_QOS_BITS_NIC; - req->max_bps_nic = bps; + req->valid_bits = cpu_to_le32(BE_QOS_BITS_NIC); + req->max_bps_nic = cpu_to_le32(bps); status = be_mcc_notify_wait(adapter);