net: Make dst_alloc() take more explicit initializations.
Now the dst->dev, dev->obsolete, and dst->flags values can be specified as well. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
+2
-1
@@ -350,7 +350,8 @@ static inline struct dst_entry *skb_dst_pop(struct sk_buff *skb)
|
||||
}
|
||||
|
||||
extern int dst_discard(struct sk_buff *skb);
|
||||
extern void *dst_alloc(struct dst_ops * ops, int initial_ref);
|
||||
extern void *dst_alloc(struct dst_ops * ops, struct net_device *dev,
|
||||
int initial_ref, int initial_obsolete, int flags);
|
||||
extern void __dst_free(struct dst_entry * dst);
|
||||
extern struct dst_entry *dst_destroy(struct dst_entry * dst);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user