[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1417537150.5303.67.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Tue, 02 Dec 2014 08:19:10 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Roopa Prabhu <roopa@...ulusnetworks.com>
Cc: Mahesh Bandewar <maheshb@...gle.com>,
netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Toshiaki Makita <makita.toshiaki@....ntt.co.jp>
Subject: Re: [PATCH net-next] rtnetlink: delay RTM_DELLINK notification
until after ndo_uninit()
On Tue, 2014-12-02 at 08:08 -0800, Roopa Prabhu wrote:
> interestingly I have never seen this. We use this heavily with most
> other logical devices.
> Which tells me most logical devices do have checks in their fill_info.
> The patch idea is good. My only concern is stale information
> in the DELLINK notification. Because, ndo_uninit() does do a lot of
> cleanup, sending
> newlink's for some of these cleanup changes. And now with your patch the
> dellink notification
> skb probably contains information that has been already deleted by
> ndo_uninit ?
What do you mean ? We send a message and device is deleted.
Its an asynchronous message.
At the time you read it, lot of things might already have changed, no
matter how careful you are.
This patch permits to get a precise snapshot of device info right before
dismantle (like stats counters for accounting purpose)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists