From 4b5cf429645d06d95774fb3288de74aa1f74fc46 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 12 Oct 2017 03:54:08 +0200 Subject: device: our use of queues means this check is worthless Signed-off-by: Jason A. Donenfeld --- src/device.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index 6b56048..9abc031 100644 --- a/src/device.c +++ b/src/device.c @@ -110,12 +110,6 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev) struct sk_buff_head packets; int ret; - if (unlikely(dev_recursion_level() > 4)) { - ret = -ELOOP; - net_dbg_ratelimited("%s: Routing loop detected\n", dev->name); - goto err; - } - if (unlikely(skb_examine_untrusted_ip_hdr(skb) != skb->protocol)) { ret = -EPROTONOSUPPORT; net_dbg_ratelimited("%s: Invalid IP packet\n", dev->name); -- cgit v1.2.3