From owner-freebsd-net@freebsd.org Sun May 28 07:24:36 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8009D8573E for ; Sun, 28 May 2017 07:24:36 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E1DFE1C1D; Sun, 28 May 2017 07:24:31 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA12038; Sun, 28 May 2017 10:24:24 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1dEsYp-000L9j-TS; Sun, 28 May 2017 10:24:23 +0300 Subject: Re: svn commit: r314948 - in head: lib/libstand sys/boot/i386/libi386 To: Kamil Czekirda , Baptiste Daroussin Cc: Mariusz Zaborski , Steven Hartland , "George V. Neville-Neil" , Toomas Soome , freebsd-net@FreeBSD.org References: <201703090601.v2961OJx077853@repo.freebsd.org> <20170526210908.ykqalqbetxp4f27p@ivaldir.net> From: Andriy Gapon Message-ID: Date: Sun, 28 May 2017 10:23:27 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2017 07:24:36 -0000 On 28/05/2017 01:09, Kamil Czekirda wrote: > In initial revision I noticed, that I'm not sure it should be default behavior. > In a lot of installations pxeloader can base on the cache and doesn't require > second, full request with the same answer. In that situation we can switch off > bootp() and I think it would be nice to have this switch and give them to users. > Flag during compilation is sensible. > > In very simple and popular case we have chain with four requests for the same > information (!): > PXE (NIC) -> iPXE -> pxeloader -> dhclient > and it's possible to switch off request from iPXE and pxeloader without breaking > boot process. Well, the information given to PXE/NIC and iPXE is not exactly the same as bootfile must differ. Also, a nit: as far as I know, it's currently impossible to run dhclient on a network booted _diskless_ system. So, yeah, in some setups we can shave off a request from pxeboot and it probably makes sense to have that option. -- Andriy Gapon