aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/veth.c
diff options
context:
space:
mode:
authorAlexander Smirnov <alex.bluesman.smirnov@gmail.com>2011-06-27 23:30:44 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-01 01:13:37 -0400
commitf82528bc13a157335dc53e78ce801883b26831e2 (patch)
treecdf1a5f77ee1a8d43707c332302451cb5c49bc2f /drivers/net/veth.c
parentbc057e0366cad58e55038a2cb69572d51c40cdf3 (diff)
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 <alex.bluesman.smirnov@gmail.com> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r--drivers/net/veth.c3
1 files changed, 0 insertions, 3 deletions
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)
126 stats = this_cpu_ptr(priv->stats); 126 stats = this_cpu_ptr(priv->stats);
127 rcv_stats = this_cpu_ptr(rcv_priv->stats); 127 rcv_stats = this_cpu_ptr(rcv_priv->stats);
128 128
129 if (!(rcv->flags & IFF_UP))
130 goto tx_drop;
131
132 /* don't change ip_summed == CHECKSUM_PARTIAL, as that 129 /* don't change ip_summed == CHECKSUM_PARTIAL, as that
133 will cause bad checksum on forwarded packets */ 130 will cause bad checksum on forwarded packets */
134 if (skb->ip_summed == CHECKSUM_NONE && 131 if (skb->ip_summed == CHECKSUM_NONE &&