From: Alexander Smirnov Date: Tue, 28 Jun 2011 03:30:44 +0000 (+0000) Subject: Exclude duplicated checking for iface-up. This flags is checked in 'is_skb_forwardabl... X-Git-Tag: next-20110726~165^2~289 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f82528bc13a;p=karo-tx-linux.git Exclude duplicated checking for iface-up. This flags is checked in 'is_skb_forwardable' function, which is subroutine of 'dev_forward_skb'. Signed-off-by: Alexander Smirnov Reviewed-by: WANG Cong Signed-off-by: David S. Miller --- diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 4b6db3b6c5d5..9eb92bfa92ab 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -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 &&