linux/drivers/net/ethernet/qlogic/netxen
Santosh Nayak 06d6c10876 netxen: qlogic ethernet : Fix endian bug.
Change the datatype of "ip_addr" to __be32 as 'ip' should be in
big endian format.

Adapter needs "ip address" in big endian format stored at lower 32bit
of req.word[1]. netxen_config_ipaddr() now receives 'ip' in big endian
format. To satisfy adapter's need, use memcpy() to copy byte by byte
of 'ip' into lower 32bit of req.word[1].

Mac address and serial number of adapter need to be in little endian format.
Change the data type of the related  variables to __le32 / __le64 or cast it
explicitly to __le32 / __le64 depending upon the requirement.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-03-16 22:20:44 -07:00
..
Makefile
netxen_nic_ctx.c netxen_nic: Fix phy link status 2012-02-04 15:59:29 -05:00
netxen_nic_ethtool.c netxen: report valid speed and duplex status when link is down 2012-02-04 15:59:29 -05:00
netxen_nic_hdr.h netxen_nic: Error logging on firmware hang 2012-02-04 15:59:29 -05:00
netxen_nic_hw.c netxen: qlogic ethernet : Fix endian bug. 2012-03-16 22:20:44 -07:00
netxen_nic_hw.h
netxen_nic_init.c netdev: ethernet dev_alloc_skb to netdev_alloc_skb 2012-02-08 18:46:38 -05:00
netxen_nic_main.c netxen: qlogic ethernet : Fix endian bug. 2012-03-16 22:20:44 -07:00
netxen_nic.h netxen: qlogic ethernet : Fix endian bug. 2012-03-16 22:20:44 -07:00