* [PATCH 1/4] net: add _skb_dst opaque field
@ 2009-06-02 15:13 Eric Dumazet
0 siblings, 0 replies; only message in thread
From: Eric Dumazet @ 2009-06-02 15:13 UTC (permalink / raw)
To: David S. Miller; +Cc: Linux Netdev List
struct sk_buff uses one union to define dst and rtable fields.
We want to replace direct access to these pointers by accessors.
First patch adds a new "unsigned long _skb_dst;" opaque field
in this union.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index aff494b..d4d7c66 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -325,6 +325,7 @@ struct sk_buff {
union {
struct dst_entry *dst;
struct rtable *rtable;
+ unsigned long _skb_dst;
};
#ifdef CONFIG_XFRM
struct sec_path *sp;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-02 15:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-02 15:13 [PATCH 1/4] net: add _skb_dst opaque field Eric Dumazet
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).