diff options
author | Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> | 2011-11-02 21:49:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-03 21:59:39 -0400 |
commit | 016f97b11b3c7fe834260150d0f9cb36d06b2eb8 (patch) | |
tree | 6d2cac0966c303e79c57f38dfb4c7dd36dccf9ec | |
parent | 5b67b3c04d73ee998a754d006e53131a7c909a46 (diff) |
be2net: Fix endian issue in RX filter command
Use cpu_to_le32() for mcast_num field in RX filter command as this
field is of type u32.
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index 824b8e6021f6..bd8332cbf619 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c | |||
@@ -1540,7 +1540,7 @@ int be_cmd_rx_filter(struct be_adapter *adapter, u32 flags, u32 value) | |||
1540 | 1540 | ||
1541 | req->if_flags_mask = req->if_flags = | 1541 | req->if_flags_mask = req->if_flags = |
1542 | cpu_to_le32(BE_IF_FLAGS_MULTICAST); | 1542 | cpu_to_le32(BE_IF_FLAGS_MULTICAST); |
1543 | req->mcast_num = cpu_to_le16(netdev_mc_count(adapter->netdev)); | 1543 | req->mcast_num = cpu_to_le32(netdev_mc_count(adapter->netdev)); |
1544 | netdev_for_each_mc_addr(ha, adapter->netdev) | 1544 | netdev_for_each_mc_addr(ha, adapter->netdev) |
1545 | memcpy(req->mcast_mac[i++].byte, ha->addr, ETH_ALEN); | 1545 | memcpy(req->mcast_mac[i++].byte, ha->addr, ETH_ALEN); |
1546 | } | 1546 | } |