[ovs-git] [openvswitch/ovs] 00e01d: datapath: Improve robustness of this_cpu_ptr defin...

GitHub noreply at github.com
Mon Sep 15 07:22:30 UTC 2014

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 00e01dd48c6eb88dafc8e8bb318baa5ad0b536d7
  Author: Andy Zhou <azhou at nicira.com>
  Date:   2014-09-15 (Mon, 15 Sep 2014)

  Changed paths:
    M acinclude.m4
    M datapath/linux/Modules.mk
    R datapath/linux/compat/include/asm/percpu.h
    M datapath/linux/compat/include/linux/percpu.h

  Log Message:
  datapath: Improve robustness of this_cpu_ptr definition in compat layer

Current autoconfig detection logic for HAVE_PER_CPU_PTR is not robust.
Depends on linux kernel version, the definition can be in either
linux/percpu.h or asm/percpu.h

Turns out it is simpler and safer to handle missing percpu.h
definitions in linux/percpu.h rather than asm/percpu.h. With this
change, there is no need for the autoconfig detection logic above.

Signed-off-by: Andy Zhou <azhou at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>

More information about the git mailing list