r8169: fix vlan tag read ordering.
authorFrancois Romieu <romieu@fr.zoreil.com>
Thu, 9 May 2013 22:53:11 +0000 (00:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 17:54:48 +0000 (10:54 -0700)
commit4ea659de2177294c23a256bbdd17d07c55162fcc
treec0a36d87085e00cb52d2c4fb4368964afc06b53f
parentdab2d3dc45ae7343216635d981d43637e1cb7d45
r8169: fix vlan tag read ordering.

commit ce11ff5e5963e441feb591e76278528f876c332d upstream.

Control of receive descriptor must not be returned to ethernet chipset
before vlan tag processing is done.

VLAN tag receive word is now reset both in normal and error path.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Spotted-by: Timo Teras <timo.teras@iki.fi>
Cc: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169.c