]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: fix a race in egress prio management
authorEric Dumazet <edumazet@google.com>
Thu, 18 Jul 2013 16:35:10 +0000 (09:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2013 20:07:13 +0000 (13:07 -0700)
commit3147e218b931b6109857985ad1b14e552430df2c
tree3bedf6a0f9585d0279f8a791998a29d70214fea9
parent991cac7ea4a1848899736fd37d86657d00aa20d2
vlan: fix a race in egress prio management

egress_priority_map[] hash table updates are protected by rtnl,
and we never remove elements until device is dismantled.

We have to make sure that before inserting an new element in hash table,
all its fields are committed to memory or else another cpu could
find corrupt values and crash.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c