From owner-svn-src-head@freebsd.org Wed May 3 22:52:04 2017 Return-Path: Delivered-To: svn-src-head@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 A4CF7D5638E; Wed, 3 May 2017 22:52:04 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward5o.cmail.yandex.net (forward5o.cmail.yandex.net [IPv6:2a02:6b8:0:1a72::28a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 292F0A3C; Wed, 3 May 2017 22:52:04 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward5o.cmail.yandex.net (Yandex) with ESMTP id 08FE820BE7; Thu, 4 May 2017 01:52:01 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 1A0F6130042E; Thu, 4 May 2017 01:51:57 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id CpnZc3H0sl-pu8S9KGH; Thu, 04 May 2017 01:51:56 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1493851916; bh=7pccYpV4sLvmDKfqvuMT8BM4pnNDCo2uzaPRtwBPmU8=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=UKgBG1nJ6fln28xAT9BkkCluOky37OMoylnZ3Mn9K9s81ZAr6XQWOvHMopZjrTnjb dIPf8fMi+bNY3wDWG87yODkBKZ5Q2oOTe5ICzbQ4modDAApZm5nZ+dJGowkxaBjn6c PHPJEdwpdOE7qxPKH1t6rXVyofVEhZafcgO/BXQ4= Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0,1 0,1 0,1 0,1 0 Subject: Re: svn commit: r317755 - head/sbin/ifconfig To: Alan Somers , Ian Lepore Cc: Ryan Stone , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" References: <201705031721.v43HL2vS071819@repo.freebsd.org> <1493838199.80042.14.camel@freebsd.org> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Message-ID: Date: Thu, 4 May 2017 01:50:46 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GrqsEu1TadqscE9equ0tV1tKhcHQrHfKA" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2017 22:52:04 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GrqsEu1TadqscE9equ0tV1tKhcHQrHfKA Content-Type: multipart/mixed; boundary="UjLdEKRNmjNoV45EpGsFdu10uceaFQja6"; protected-headers="v1" From: "Andrey V. Elsukov" To: Alan Somers , Ian Lepore Cc: Ryan Stone , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Message-ID: Subject: Re: svn commit: r317755 - head/sbin/ifconfig References: <201705031721.v43HL2vS071819@repo.freebsd.org> <1493838199.80042.14.camel@freebsd.org> In-Reply-To: --UjLdEKRNmjNoV45EpGsFdu10uceaFQja6 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 03.05.2017 22:22, Alan Somers wrote: > The problem with the original code is that module load errors would be > caught too late, and as a result the error printed would be less > useful. For example, if you forgot to put "kld_list=3Dif_igb" in > /etc/rc.conf and run "ifconfig igb0", it would print "ifconfig: > interface igb7 does not exist" instead of the more useful "ifconfig: > kldload(if_igb): Operation not permitted". But I didn't know that > there were drivers like mlx4en where ifconfig can't load the correct > module. So I'll take Ryan's suggestion and revert that part for now. I want to note, that there is if_enc(4) kernel module, that is failed to be loaded by ifconfig(8) due to presence in the kernel enc(4) driver (from sys/cam). --=20 WBR, Andrey V. Elsukov --UjLdEKRNmjNoV45EpGsFdu10uceaFQja6-- --GrqsEu1TadqscE9equ0tV1tKhcHQrHfKA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlkKXscACgkQAcXqBBDI oXqUqwgAwDXtxNzdSsjII+aFKwMHPT8z4H7BW1Cobbths9LArpLfEbiMhSPkdKHz VCeRXAhK8nB0SIdJd11q8bVMbX/7QutnLK7p/D7i2ys8ExYF9opPGP4YposWVEil 1mTvnzDT+g9AZGJrbebJp5iZUxmW24VqYDJKs8mTi7+S8lbOTP6xHH6+0VxYVGHJ +WxfhNgttzbwkwyGUuHccqjfiJfuZi5p2GqBDAoPD4fh629sxXy6qY/pc2MVyW7C f6uzo4X8OWo47nTFX9vXlHFhTxjFgF3RhSDjIEI96fCSDZa/MSNtBbn1983ECo0a Ge6/aB4AT61KijTv1pS0PCnbMufd4A== =Zrdy -----END PGP SIGNATURE----- --GrqsEu1TadqscE9equ0tV1tKhcHQrHfKA--