Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f82528bc authored by Alexander Smirnov's avatar Alexander Smirnov Committed by David S. Miller
Browse files

Exclude duplicated checking for iface-up. This flags is checked in...


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: default avatarAlexander Smirnov <alex.bluesman.smirnov@gmail.com>
Reviewed-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bc057e03
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -126,9 +126,6 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev)
	stats = this_cpu_ptr(priv->stats);
	stats = this_cpu_ptr(priv->stats);
	rcv_stats = this_cpu_ptr(rcv_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
	/* don't change ip_summed == CHECKSUM_PARTIAL, as that
	   will cause bad checksum on forwarded packets */
	   will cause bad checksum on forwarded packets */
	if (skb->ip_summed == CHECKSUM_NONE &&
	if (skb->ip_summed == CHECKSUM_NONE &&