]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: improve handling VLAN tag
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 27 Jun 2019 21:06:33 +0000 (23:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jun 2019 19:29:39 +0000 (12:29 -0700)
commitc7bd46daa9266dfa427c5814db34902addb441ca
treee668baad90b87328024e25d93cf65ca7e8e5cce4
parent5526534bfa61fc19a8794a0c40146544f32e1650
r8169: improve handling VLAN tag

The VLAN tag is stored in the descriptor in network byte order.
Using swab16 works on little endian host systems only. Better play safe
and use ntohs or htons respectively.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c