OSDN Git Service

net: vrf: remove skb_dst_force() after skb_dst_set()
authorEric Dumazet <edumazet@google.com>
Thu, 21 Sep 2017 14:50:28 +0000 (07:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Sep 2017 03:36:32 +0000 (20:36 -0700)
skb_dst_set(skb, dst) installs a normal (refcounted) dst, there is no
point using skb_dst_force(skb)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c

index 9b243e6..cc18b7b 100644 (file)
@@ -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