Exclude duplicated checking for iface-up. This flags is checked in 'is_skb_forwardabl...
authorAlexander Smirnov <[email protected]>
Tue, 28 Jun 2011 03:30:44 +0000 (03:30 +0000)
committerDavid S. Miller <[email protected]>
Fri, 1 Jul 2011 05:13:37 +0000 (22:13 -0700)
Signed-off-by: Alexander Smirnov <[email protected]>
Reviewed-by: WANG Cong <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/veth.c

index 4b6db3b6c5d57dd35a9b0896df3ac00df99b5fe1..9eb92bfa92ab44fadca0c5f4f7f3a1408e377578 100644 (file)
@@ -126,9 +126,6 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev)
        stats = this_cpu_ptr(priv->stats);
        rcv_stats = this_cpu_ptr(rcv_priv->stats);
 
-       if (!(rcv->flags & IFF_UP))
-               goto tx_drop;
-
        /* don't change ip_summed == CHECKSUM_PARTIAL, as that
           will cause bad checksum on forwarded packets */
        if (skb->ip_summed == CHECKSUM_NONE &&