]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ipvlan: unhash addresses without synchronize_rcu
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Tue, 14 Jul 2015 13:35:53 +0000 (16:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jul 2015 04:33:39 +0000 (21:33 -0700)
commit6640e673c6f3dbaace085ca2686a8a343dc23a71
tree54c6f43e8d9b0e47dbab468aa2daa693ada3277d
parent6a725497318545aae246232ed05a8df9cffb0a02
ipvlan: unhash addresses without synchronize_rcu

All structures used in traffic forwarding are rcu-protected:
ipvl_addr, ipvl_dev and ipvl_port. Thus we can unhash addresses
without synchronization. We'll anyway hash it back into the same
bucket: in worst case lockless lookup will scan hash once again.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan.h
drivers/net/ipvlan/ipvlan_core.c
drivers/net/ipvlan/ipvlan_main.c