]> 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)
commitdab36e14ec5698acd1f2d51fc95812279ba41dfd
tree3e20b1cb8ae5f5925853ef3e347b946d38002b89
parentc53012ab00e990bc381d181e0c1484f470a90fe8
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