[ovs-dev] [PATCH 1/2] datapath: Use openvswitch_handle_frame hook in >=RHEL6.4 to live side by side with bridging

Jesse Gross jesse at nicira.com
Tue Apr 23 20:39:06 UTC 2013


On Fri, Apr 19, 2013 at 7:01 AM, Thomas Graf <tgraf at redhat.com> wrote:
> diff --git a/datapath/vport-netdev.c b/datapath/vport-netdev.c
> index f8948fa..c0e3c02 100644
> --- a/datapath/vport-netdev.c
> +++ b/datapath/vport-netdev.c
> @@ -153,10 +161,16 @@ static struct vport *netdev_create(const struct vport_parms *parms)
>         }
>
>         rtnl_lock();
> +#ifdef HAVE_RHEL_OVS_HOOK
> +       netdev_vport->dev->ax25_ptr = vport;
> +       atomic_inc(&nr_bridges);
> +       openvswitch_handle_frame_hook = netdev_frame_hook;

Shouldn't these assignments use rcu_assign_pointer?



More information about the dev mailing list