We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b49004 commit e79e259Copy full SHA for e79e259
include/net/dst.h
@@ -289,13 +289,18 @@ static inline void skb_dst_drop(struct sk_buff *skb)
289
}
290
291
292
-static inline void skb_dst_copy(struct sk_buff *nskb, const struct sk_buff *oskb)
+static inline void __skb_dst_copy(struct sk_buff *nskb, unsigned long refdst)
293
{
294
- nskb->_skb_refdst = oskb->_skb_refdst;
+ nskb->_skb_refdst = refdst;
295
if (!(nskb->_skb_refdst & SKB_DST_NOREF))
296
dst_clone(skb_dst(nskb));
297
298
299
+static inline void skb_dst_copy(struct sk_buff *nskb, const struct sk_buff *oskb)
300
+{
301
+ __skb_dst_copy(nskb, oskb->_skb_refdst);
302
+}
303
+
304
/**
305
* skb_dst_force - makes sure skb dst is refcounted
306
* @skb: buffer
0 commit comments