]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: Fix Endian
authorLi RongQing <roy.qing.li@gmail.com>
Wed, 4 Jul 2012 16:05:42 +0000 (16:05 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 27 Aug 2012 14:06:30 +0000 (07:06 -0700)
commit8412c2b40c9064196455c00b822f7b097e6ef2e8
treee2be0d19e85837fd234095b3e1fc26142b682e6c
parenta85bc5e8b2f3797a0663626507ab9f4a346095d5
be2net: Fix Endian

ETH_P_IP is host Endian, skb->protocol is big Endian, when
compare them, we should change ETH_P_IP from host endian
to big endian, htons, not ntohs.

CC: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h