浏览代码

net: add _skb_dst opaque field

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Eric Dumazet 16 年之前
父节点
当前提交
dfbf97f3ac
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/linux/skbuff.h

+ 1 - 0
include/linux/skbuff.h

@@ -325,6 +325,7 @@ struct sk_buff {
 	union {
 	union {
 		struct  dst_entry	*dst;
 		struct  dst_entry	*dst;
 		struct  rtable		*rtable;
 		struct  rtable		*rtable;
+		unsigned long		_skb_dst;
 	};
 	};
 #ifdef CONFIG_XFRM
 #ifdef CONFIG_XFRM
 	struct	sec_path	*sp;
 	struct	sec_path	*sp;