From: Eric Dumazet <eric.dumazet@gmail.com>
To: Tariq Toukan <ttoukan.linux@gmail.com>
Cc: David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Tariq Toukan <tariqt@mellanox.com>
Subject: Re: [PATCH net-next] mlx4: avoid unnecessary dirtying of critical fields
Date: Sun, 20 Nov 2016 09:15:02 -0800 [thread overview]
Message-ID: <1479662102.8455.361.camel@edumazet-glaptop3.roam.corp.google.com> (raw)
In-Reply-To: <62f9c9ee-d710-7493-1094-e8ffe8aaa1ca@gmail.com>
On Sun, 2016-11-20 at 17:14 +0200, Tariq Toukan wrote:
> Hi Eric,
>
> Thanks for your patch.
>
> On 18/11/2016 10:15 PM, Eric Dumazet wrote:
> > +
> > + AVG_PERF_COUNTER(priv->pstats.rx_coal_avg, polled);
> Keep this perf stats update out of the if block.
This perf stat would be useless then with busy polling.
And this would be the the only source of false sharing in the driver.
Not that I particularly care, since AVG_PERF_COUNTER can not be enabled
without modifying / recompiling the driver.
next prev parent reply other threads:[~2016-11-20 17:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-18 20:15 [PATCH net-next] mlx4: avoid unnecessary dirtying of critical fields Eric Dumazet
2016-11-20 15:14 ` Tariq Toukan
2016-11-20 17:15 ` Eric Dumazet [this message]
2016-11-20 17:24 ` [PATCH v2 " Eric Dumazet
2016-11-20 17:26 ` Eric Dumazet
2016-11-21 9:09 ` Tariq Toukan
2016-11-21 16:33 ` David Miller
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=1479662102.8455.361.camel@edumazet-glaptop3.roam.corp.google.com \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=tariqt@mellanox.com \
--cc=ttoukan.linux@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.