Skip to content

Commit

Permalink
net: vrf: remove skb_dst_force() after skb_dst_set()
Browse files Browse the repository at this point in the history
skb_dst_set(skb, dst) installs a normal (refcounted) dst, there is no
point using skb_dst_force(skb)

Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Eric Dumazet authored and davem330 committed Sep 22, 2017
1 parent a1f3316 commit a424120
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/vrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ static int vrf_local_xmit(struct sk_buff *skb, struct net_device *dev,
skb_orphan(skb);

skb_dst_set(skb, dst);
skb_dst_force(skb);

/* set pkt_type to avoid skb hitting packet taps twice -
* once on Tx and again in Rx processing
Expand Down

0 comments on commit a424120

Please sign in to comment.