diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-28 17:13:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-29 01:25:59 -0400 |
commit | 5c1e6aa300a7a669dc469d2dcb20172c6bd8fed9 (patch) | |
tree | 61796a49f8b9236eee4730ff8142e79bd43f0f51 /include/net/dst.h | |
parent | 778865a550e7958c1211242cc481f48d46de0f04 (diff) |
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>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r-- | include/net/dst.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h index d7bb74062df1..2588a9a88cc6 100644 --- a/include/net/dst.h +++ b/include/net/dst.h | |||
@@ -350,7 +350,8 @@ static inline struct dst_entry *skb_dst_pop(struct sk_buff *skb) | |||
350 | } | 350 | } |
351 | 351 | ||
352 | extern int dst_discard(struct sk_buff *skb); | 352 | extern int dst_discard(struct sk_buff *skb); |
353 | extern void *dst_alloc(struct dst_ops * ops, int initial_ref); | 353 | extern void *dst_alloc(struct dst_ops * ops, struct net_device *dev, |
354 | int initial_ref, int initial_obsolete, int flags); | ||
354 | extern void __dst_free(struct dst_entry * dst); | 355 | extern void __dst_free(struct dst_entry * dst); |
355 | extern struct dst_entry *dst_destroy(struct dst_entry * dst); | 356 | extern struct dst_entry *dst_destroy(struct dst_entry * dst); |
356 | 357 | ||