]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: Use htons when checking protocol info
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 28 Jun 2018 12:42:07 +0000 (14:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 09:54:09 +0000 (18:54 +0900)
commit37c7a25d9370d7b84aef7091df3930604897e4a5
tree3e20b1cb8ae5f5925853ef3e347b946d38002b89
parent680a9f2b39d6db60d1253aaae3ff70695b38bd81
net: mvpp2: Use htons when checking protocol info

When checking the skb->protocol field, we have to make sure we use the
proper endianness using htons, and not swab16.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c