Skip to content

Commit f82528b

Browse files
alex-bluesmandavem330
authored andcommitted
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>
1 parent bc057e0 commit f82528b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/veth.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev)
126126
stats = this_cpu_ptr(priv->stats);
127127
rcv_stats = this_cpu_ptr(rcv_priv->stats);
128128

129-
if (!(rcv->flags & IFF_UP))
130-
goto tx_drop;
131-
132129
/* don't change ip_summed == CHECKSUM_PARTIAL, as that
133130
will cause bad checksum on forwarded packets */
134131
if (skb->ip_summed == CHECKSUM_NONE &&

0 commit comments

Comments
 (0)