r8169: fix vlan tag read ordering.
authorfrançois romieu <romieu@fr.zoreil.com>
Thu, 24 Jan 2013 13:30:06 +0000 (13:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2013 00:28:58 +0000 (19:28 -0500)
commitce11ff5e5963e441feb591e76278528f876c332d
tree9a4827b199a5e885b5e942684af2345df32533b2
parent56a666dcfcb46e998a1bd969fb201bf51de3c412
r8169: fix vlan tag read ordering.

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>
drivers/net/ethernet/realtek/r8169.c