[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <42EBB05B-DC1E-4CD9-B8FF-124A3713A520@scaleway.com>
Date: Thu, 15 Nov 2018 11:06:33 +0100
From: Alexis Bauvin <abauvin@...leway.com>
To: David Ahern <dsa@...ulusnetworks.com>, roopa@...ulusnetworks.com,
nicolas.dichtel@...nd.com
Cc: netdev@...r.kernel.org, akherbouche@...leway.com
Subject: Re: [RFC v1 3/3] vxlan: handle underlay VRF changes
Le 14 nov. 2018 à 21:04, David Ahern <dsa@...ulusnetworks.com> a écrit :
>
> On 11/14/18 1:31 AM, Alexis Bauvin wrote:
>> diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
>> index 7477b5510a04..188c0cdb8838 100644
>> --- a/drivers/net/vxlan.c
>> +++ b/drivers/net/vxlan.c
>> @@ -208,6 +208,18 @@ static inline struct vxlan_rdst *first_remote_rtnl(struct vxlan_fdb *fdb)
>> return list_first_entry(&fdb->remotes, struct vxlan_rdst, list);
>> }
>>
>> +static int vxlan_is_in_l3mdev_chain(struct net_device *chain,
>> + struct net_device *dev)
>> +{
>> + if (!chain)
>> + return 0;
>> +
>> + if (chain->ifindex == dev->ifindex)
>> + return 1;
>> + return vxlan_is_in_l3mdev_chain(netdev_master_upper_dev_get(chain),
>> + dev);
>
> l3mdev_master_dev_rcu
Same thing here, please see reply to previous patch.
Powered by blists - more mailing lists