public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Lezcano <dlezcano@fr.ibm.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, den@openvz.org, benjamin.thery@bull.net
Subject: [patch 2/2][NETNS][DST] add the network namespace pointer in dst_ops
Date: Wed, 16 Jan 2008 15:54:18 +0100	[thread overview]
Message-ID: <20080116150733.443636890@localhost.localdomain> (raw)
In-Reply-To: 20080116145416.844293640@localhost.localdomain

[-- Attachment #1: add-net-ns-to-dst-ops.patch --]
[-- Type: text/plain, Size: 788 bytes --]

The network namespace pointer can be stored into the dst_ops structure.
This is usefull when there are multiple instances of the dst_ops for a
protocol. When there are no several instances, this field will be never
used in the protocol. So there is no impact for the protocols which do
implement the network namespaces.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
---
 include/net/dst.h |    1 +
 1 file changed, 1 insertion(+)

Index: net-2.6.25-misc/include/net/dst.h
===================================================================
--- net-2.6.25-misc.orig/include/net/dst.h
+++ net-2.6.25-misc/include/net/dst.h
@@ -102,6 +102,7 @@ struct dst_ops
 
 	atomic_t		entries;
 	struct kmem_cache 		*kmem_cachep;
+	struct net              *dst_net;
 };
 
 #ifdef __KERNEL__

-- 

  parent reply	other threads:[~2008-01-16 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-16 14:54 [patch 0/2][NETNS][DST] pass dst_ops to gc functions and add a netns pointer in it Daniel Lezcano
2008-01-16 14:54 ` [patch 1/2][NETNS][DST] dst: pass the dst_ops as parameter to the gc functions Daniel Lezcano
2008-01-18 11:57   ` David Miller
2008-01-16 14:54 ` Daniel Lezcano [this message]
2008-01-18 11:58   ` [patch 2/2][NETNS][DST] add the network namespace pointer in dst_ops 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=20080116150733.443636890@localhost.localdomain \
    --to=dlezcano@fr.ibm.com \
    --cc=benjamin.thery@bull.net \
    --cc=davem@davemloft.net \
    --cc=den@openvz.org \
    --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