Netdev List
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: Abstract away all dst_entry metrics accesses.
Date: Thu, 09 Dec 2010 08:18:36 +0100	[thread overview]
Message-ID: <1291879116.2795.51.camel@edumazet-laptop> (raw)
In-Reply-To: <20101208.214834.226775385.davem@davemloft.net>

Le mercredi 08 décembre 2010 à 21:48 -0800, David Miller a écrit :
> Use helper functions to hide all direct accesses, especially writes,
> to dst_entry metrics values.
> 
> This will allow us to:
> 
> 1) More easily change how the metrics are stored.
> 
> 2) Implement COW for metrics.
> 
> In particular this will help us put metrics into the inetpeer
> cache if that is what we end up doing.  We can make the _metrics
> member a pointer instead of an array, initially have it point
> at the read-only metrics in the FIB, and then on the first set
> grab an inetpeer entry and point the _metrics member there.
> 
> Signed-off-by: David S. Miller <davem@davemloft.net>

Very exciting, thanks David !

Acked-by: Eric Dumazet <eric.dumazet@gmail.com>



      reply	other threads:[~2010-12-09  7:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-09  5:48 [PATCH] net: Abstract away all dst_entry metrics accesses David Miller
2010-12-09  7:18 ` Eric Dumazet [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=1291879116.2795.51.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=davem@davemloft.net \
    --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