From: Santosh Nayak Date: Mon, 12 Mar 2012 22:58:24 +0000 (+0000) Subject: netxen: qlogic ethernet : Fix endian bug. X-Git-Tag: v3.4-rc1~177^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06d6c1087605b38342eb20e74b0cacb8b71f5086;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed