[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAF2d9jjVP+VGBosOdHSNvCc8YGzr76d202GVeUUH_f9C0nW8PQ@mail.gmail.com>
Date: Tue, 26 Apr 2016 14:36:37 -0700
From: Mahesh Bandewar <maheshb@...gle.com>
To: Francesco Ruggeri <fruggeri@...sta.com>
Cc: linux-netdev <netdev@...r.kernel.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH net-next] macvlan: fix failure during registration v3
[...]
>> > -destroy_port:
>> > - port->count -= 1;
>> > - if (!port->count)
>> > - macvlan_port_destroy(lowerdev);
>> I think you still need this when it fails netdev_upper_dev_link(). The
>> only thing you should remove is the label.
>
> I don't think so. I think the double decrement also occurred in this case.
> unregister_netdevice invokes rollback_registered/macvlan_uninit
> which does the decrement.
>
I thought macvlan_port_destroy() does not get called but it is called
from macvlan_uninit(). So it's all good. Thanks.
> Thanks,
> Francesco
>
>> >
>> > return err;
>> > }
>> > --
>> > 1.8.1.4
>> >
Powered by blists - more mailing lists