aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-12 03:54:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-17 19:26:07 +0200
commitb76c9423d678ac8fd9fe3105fe20e4b8c1799713 (patch)
tree145a89268f2542a5997d92a2e5d75f981a60d350 /src/device.c
parentsocket: eliminate dead code (diff)
downloadwireguard-monolithic-historical-b76c9423d678ac8fd9fe3105fe20e4b8c1799713.tar.xz
wireguard-monolithic-historical-b76c9423d678ac8fd9fe3105fe20e4b8c1799713.zip
device: our use of queues means this check is worthless
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c6
1 files changed, 0 insertions, 6 deletions
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);