diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-01-14 20:47:30 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-14 20:47:30 -0800 |
commit | 2edbb454428729f450f7a0aabbf95ac62b46b78a (patch) | |
tree | 392ae07f3448897ceff4717663af7584eccbd375 /drivers/net/netxen/netxen_nic_init.c | |
parent | d1d5e6b1cead3df6f722d1d458874bd7f93da8d6 (diff) | |
download | blackbird-op-linux-2edbb454428729f450f7a0aabbf95ac62b46b78a.tar.gz blackbird-op-linux-2edbb454428729f450f7a0aabbf95ac62b46b78a.zip |
netxen: fix endianness in firmware commands
o Set restricted (little endian) data types in firmware command
requests and responses.
o Remove unnecessary conversion to LE when writing registers.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_init.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index d924468e506e..c0e06a653170 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c @@ -1277,7 +1277,7 @@ static void netxen_process_rcv(struct netxen_adapter *adapter, int ctxid, dev_kfree_skb_any(skb); for (i = 0; i < nr_frags; i++) { - index = frag_desc->frag_handles[i]; + index = le16_to_cpu(frag_desc->frag_handles[i]); skb = netxen_process_rxbuf(adapter, rds_ring, index, cksum); if (skb) |