r8169: fix vlan tag read ordering.
authorFrancois Romieu <romieu@fr.zoreil.com>
Thu, 9 May 2013 22:50:20 +0000 (00:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 17:04:47 +0000 (10:04 -0700)
commite81164cfec2f578998670c8f00e5d0c33c06f20f
treeab856b742aea9e7958c6309da88f6fc27a47593c
parentb89396eaa22b921245b4d30f7e26e406e89aa51c
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/r8169.c