From: David Miller <davem@davemloft.net>
To: greearb@candelatech.com
Cc: eric.dumazet@gmail.com, netdev@vger.kernel.org, mmaruseac@ixiacom.com
Subject: Re: [PATCH net: fix /proc/net/dev regression
Date: Tue, 03 Apr 2012 17:25:48 -0400 (EDT) [thread overview]
Message-ID: <20120403.172548.2299885807875686272.davem@davemloft.net> (raw)
In-Reply-To: <4F7B1910.3010701@candelatech.com>
From: Ben Greear <greearb@candelatech.com>
Date: Tue, 03 Apr 2012 08:36:48 -0700
> On 04/03/2012 01:33 AM, Eric Dumazet wrote:
>> Commit f04565ddf52 (dev: use name hash for dev_seq_ops) added a second
>> regression, as some devices are missing from /proc/net/dev if many
>> devices are defined.
>>
>> When seq_file buffer is filled, the last ->next/show() method is
>> canceled (pos value is reverted to value prior ->next() call)
>>
>> Problem is after above commit, we dont restart the lookup at right
>> position in ->start() method.
>>
>> Fix this by removing the internal 'pos' pointer added in commit, since
>> we need to use the 'loff_t *pos' provided by seq_file layer.
>>
>> This also reverts commit 5cac98dd0 (net: Fix corruption
>> in /proc/*/net/dev_mcast), since its not needed anymore.
>>
>> Reported-by: Ben Greear<greearb@candelatech.com>
>> Signed-off-by: Eric Dumazet<eric.dumazet@gmail.com>
>> Cc: Mihai Maruseac<mmaruseac@ixiacom.com>
>
> This appears to fix the problem. I do find it mildly irritating
> that the ordering is now random in /proc/net/dev, but I guess
> that is the price of progress.
>
> Tested-by: Ben Greear <greearb@candelatech.com>
>
> Thanks for the quick fix!
Applied, and queued up for -stable, thanks everyone.
prev parent reply other threads:[~2012-04-03 21:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 4:29 /proc/net/dev is funky in 3.3.0 Ben Greear
2012-04-03 5:43 ` Eric Dumazet
2012-04-03 5:53 ` Ben Greear
2012-04-03 6:36 ` Eric Dumazet
2012-04-03 7:06 ` Eric Dumazet
2012-04-03 7:17 ` Mihai Maruseac
2012-04-03 8:33 ` [PATCH net: fix /proc/net/dev regression Eric Dumazet
2012-04-03 15:36 ` Ben Greear
2012-04-03 15:59 ` Eric Dumazet
2012-04-03 21:25 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120403.172548.2299885807875686272.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=greearb@candelatech.com \
--cc=mmaruseac@ixiacom.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).