]> git.baikalelectronics.ru Git - kernel.git/commit
qlge: fix endian issue
authorLi RongQing <roy.qing.li@gmail.com>
Mon, 9 Jul 2012 22:02:42 +0000 (22:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 08:31:24 +0000 (01:31 -0700)
commit1e2e1e1a5d5c00ed00a7b78e1fac287ddb19deee
tree1339359b1afe250fdbad840db4ab9f01202b9c7d
parent3559583533c7ae37d4bb17e47adc4999e4451a8d
qlge: fix endian issue

commit 9cf690a3 introduces a bug, ntohs is __be16_to_cpu,
not cpu_to_be16.

We always use htons on IP_OFFSET and IP_MF, then compare
with network package.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlge/qlge_main.c