]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Fix Endian
authorLi RongQing <roy.qing.li@gmail.com>
Wed, 4 Jul 2012 16:05:42 +0000 (16:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 07:14:16 +0000 (00:14 -0700)
commite122247e1bcda4c98310b089bfd36f4fcd96d592
tree01b25e4d9b576f39ed472cf5c539cb6e3b0b4bd0
parent176f8e6073fa2bb90645b36b6d10c535425741c6
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/ethernet/emulex/benet/be.h