]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: prs: Drop unnecessary swab16 in vlan detection
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 28 Jun 2018 12:42:06 +0000 (14:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 09:54:09 +0000 (18:54 +0900)
commitc53012ab00e990bc381d181e0c1484f470a90fe8
tree10e7e5b24ac8d0d98bbc80b2fe1f4a68cc4c778e
parent35b439355330f9bb9372bbad64d5d978d3bcf2af
net: mvpp2: prs: Drop unnecessary swab16 in vlan detection

Vlan IDs must not be swapped when creating Header Parser entries. This
has no effect on little-endian systems, but is wrong for big-endian.

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