[ovs-git] [openvswitch/ovs] 3343f8: netdev: use acquire-release semantics for change_s...

Ben Pfaff noreply at github.com
Mon Dec 2 22:53:49 UTC 2019

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 3343f8d6cfbe358e7f28cbd24b750b01e64f5ddd
  Author: Yanqin Wei <Yanqin.Wei at arm.com>
  Date:   2019-12-02 (Mon, 02 Dec 2019)

  Changed paths:
    M lib/netdev-provider.h
    M lib/netdev.c

  Log Message:
  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 at arm.com>
Signed-off-by: Yanqin Wei <Yanqin.Wei at arm.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list