]> git.proxmox.com Git - mirror_ovs.git/commit
netdev: use acquire-release semantics for change_seq in netdev
authorYanqin Wei <Yanqin.Wei@arm.com>
Tue, 26 Nov 2019 07:35:23 +0000 (15:35 +0800)
committerBen Pfaff <blp@ovn.org>
Mon, 2 Dec 2019 22:48:14 +0000 (14:48 -0800)
commit3343f8d6cfbe358e7f28cbd24b750b01e64f5ddd
treea75585a28a7c312ea7bdab322cf2781516017aaa
parente515e66a1900feffd4af08c2596fb8d59b07ddd6
netdev: use acquire-release semantics for change_seq in netdev

"rxq_enabled" of netdev is writen in the vhost thread and read by pmd
thread once it observes 'change_seq' is updated. This patch is to keep
order on aarch64 or other weak memory model CPU to ensure 'rxq_enabled' is
observed before 'change_seq'.

Reviewed-by: Gavin Hu <Gavin.Hu@arm.com>
Signed-off-by: Yanqin Wei <Yanqin.Wei@arm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-provider.h
lib/netdev.c