Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15489C4332F for ; Fri, 25 Feb 2022 16:21:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 257BB83D03; Fri, 25 Feb 2022 17:20:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 54CC983C54; Fri, 25 Feb 2022 17:20:17 +0100 (CET) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 82C1783C81 for ; Fri, 25 Feb 2022 17:20:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f182.google.com with SMTP id bt3so2848129qtb.0 for ; Fri, 25 Feb 2022 08:20:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8jAhhSAkfDxra4vIm3iZE9mp3W2YDFTrxBxiATQOpSM=; b=DC6fSMZf8uAKF31Cxt4paIapoh9fmHlQoJ4wJww/fsyQ/n1EWzYQ+1UAqmxDBy1ONX URHYcfhqNiIFzoUyJwkPYZKpDiV9kVxAo0fvQKYKZOMyKCXtBvPMmMzr5zwTIE/SYrey REL3eZNrf9kF4bl6nNGzV4S10fTbX0kfhLVCciwLW9uyANebj0mxFIaJLEQ2zRyUbrJ/ axdzKeCPkRvfZTHw4wkJ2Lh4YjPiQqrP+eUEq3hhOWNZp3MTHZPCnwFRdm5XfBWeCa54 wquZw9+8DiSZwrDRZZr5na4h0pLgXJAp47Y9wtQmjD9QEUPtVIBCVIKXGHSe4URjAaqX hmzg== X-Gm-Message-State: AOAM531yUPB2PxDjcwFiBW5XbaSWxVaGUyd3DIVBar9OQiFEXoOFKh8/ ONoyInmGYa5jY1IWMcp582vqjTkyEA== X-Google-Smtp-Source: ABdhPJzF6x8orDI+i+dB6YOWEl851m85qOf13/sGtCvOE4IhgllnoWs+w6Rmsy20jhV01v453Tguvw== X-Received: by 2002:ac8:7d92:0:b0:2de:3c4c:bfd2 with SMTP id c18-20020ac87d92000000b002de3c4cbfd2mr7511942qtd.502.1645806000990; Fri, 25 Feb 2022 08:20:00 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id e2-20020ac86702000000b002dea8ea757esm1609014qtp.96.2022.02.25.08.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 08:20:00 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Ramon Fried Subject: [PATCH 7/9] net: Remove CONFIG_BOOTP_DHCP_REQUEST_DELAY Date: Fri, 25 Feb 2022 11:19:51 -0500 Message-Id: <20220225161953.1342594-7-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220225161953.1342594-1-trini@konsulko.com> References: <20220225161953.1342594-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This option is not in use anywhere and the documentation implies it's for some very old and unlikely to be seen currently issues. Rather than update the code so the CONFIG symbol could be easily in Kconfig, remove the code. Cc: Ramon Fried Signed-off-by: Tom Rini --- README | 14 -------------- net/bootp.c | 3 --- 2 files changed, 17 deletions(-) diff --git a/README b/README index e7b2f83651c3..6bb8d6e25bdc 100644 --- a/README +++ b/README @@ -1173,20 +1173,6 @@ The following options need to be configured: - DHCP Advanced Options: - CONFIG_BOOTP_DHCP_REQUEST_DELAY - - A 32bit value in microseconds for a delay between - receiving a "DHCP Offer" and sending the "DHCP Request". - This fixes a problem with certain DHCP servers that don't - respond 100% of the time to a "DHCP request". E.g. On an - AT91RM9200 processor running at 180MHz, this delay needed - to be *at least* 15,000 usec before a Windows Server 2003 - DHCP server would reply 100% of the time. I recommend at - least 50,000 usec to be safe. The alternative is to hope - that one of the retries will be successful but note that - the DHCP timeout and retry process takes a longer than - this delay. - - Link-local IP address negotiation: Negotiate with other link-local clients on the local network for an address that doesn't require explicit configuration. diff --git a/net/bootp.c b/net/bootp.c index d83e4eb0ba9e..a896e1e5b546 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -1038,9 +1038,6 @@ static void dhcp_send_request_packet(struct bootp_hdr *bp_offer) bcast_ip.s_addr = 0xFFFFFFFFL; net_set_udp_header(iphdr, bcast_ip, PORT_BOOTPS, PORT_BOOTPC, iplen); -#ifdef CONFIG_BOOTP_DHCP_REQUEST_DELAY - udelay(CONFIG_BOOTP_DHCP_REQUEST_DELAY); -#endif /* CONFIG_BOOTP_DHCP_REQUEST_DELAY */ debug("Transmitting DHCPREQUEST packet: len = %d\n", pktlen); net_send_packet(net_tx_packet, pktlen); } -- 2.25.1