From nobody Thu Feb 23 08:01:35 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PMlpl5lz0z3t8ym; Thu, 23 Feb 2023 08:01:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PMlpl5L71z3R33; Thu, 23 Feb 2023 08:01:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677139295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ERs0usrnbhW07QGeWdphK8k3hIK1ImvSanw/fJ5qwCk=; b=LuofVxEWFjxDtVusIjE6aU08XKsjOHhyTL9rLyEDTtsl9FqdugPJaq08FP9uS8Sz55kmj/ RqlL1UjIQKLpc17UHXcx8ajEO06le9PO69Teuj8sT2m8TC0jkWeFevQfC5noPZm8xqQOtq 1wSt2JFkq1Yjnk8/f8wF0fZgnTKeCrg9G4JFdxcwhJhyHFIyzYa8oQmF7BJhaIdRltY39/ z6RMg8lZ8MoYAfurHLtK1/wSEy+wAz7O+YRL5EsxdJTTy+7Rv2Wa5YzEwiXxwxiGR7rQx0 UMllsA9/oY5w3FTdIT4a2Zjjwpnpwczw8HQE+6wt5yjXUkwe5hXl3Xt9IR4iZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677139295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ERs0usrnbhW07QGeWdphK8k3hIK1ImvSanw/fJ5qwCk=; b=dcF280z6gX7QKFsaP2TPuZx76PnVbMYpc5GE7XpA82mAmbHRz3CNMPJH5ypy/WKW8V6g2y AJiCJzYhyS5xXpqXihNFtnlSUJUl0u+w2Q41r0pRVoKkkM/YAViU26FsCgpf9M0NxgmcI4 zkA4TA7smV1MkLCz8YSw/4xSewGiA3sBmTheB8JBY0c77HTXw8y56WEdtFBxkMBo2dqDjj QKpxL2L8ol1miRtNn9BuYyp+0AcJ13vIQ8fmAIryIarDKXXrvXlRSa2KpOIW72/U1g1jC6 tFu8rkywHGcYTliQm/oJ5dYnB9kzG2NoFY8fQMmwTw6SgpZ1qsscNnL4VS8EuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677139295; a=rsa-sha256; cv=none; b=eZRoki5JyJNZjpL5lQlcpv4aE4Y+LdfBRtQg4ResZaRSQiDuKPa0lu3FltFIVlBH/N3BiE G/0IzuyiMJ6a404pW724/b5JOdc9HAIsFUBbwMq3cxxDC7TGPDqmxJ9di9eb2uyqC00nEb qxth+NEvskVvD9fKuw+ZsfLwwu9Nr+qQmkOD1uuL/11m1iJVU3m1iRrkdIz4bcpQqvCD69 /JYPDb2jkGI/yMVSsBWci15x0SN+bqNeNR+1Q3XPVTwsquNhCAlSKDrYbpAyZzGKlipwmY BLH0REaGJTV1IuDJBXrmtr5+9KItn9wX+by4JuSR/zCPqjjsFtizSTZu5xEYlg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PMlpl4QyMzZ5g; Thu, 23 Feb 2023 08:01:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31N81ZEO029584; Thu, 23 Feb 2023 08:01:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31N81ZLF029583; Thu, 23 Feb 2023 08:01:35 GMT (envelope-from git) Date: Thu, 23 Feb 2023 08:01:35 GMT Message-Id: <202302230801.31N81ZLF029583@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 200fe6e3a0c8 - main - linux(4): Use predefined constant instead of hardcoded value List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 200fe6e3a0c8f2fc4fb8f48abd6528418a8a370c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=200fe6e3a0c8f2fc4fb8f48abd6528418a8a370c commit 200fe6e3a0c8f2fc4fb8f48abd6528418a8a370c Author: Dmitry Chagin AuthorDate: 2023-02-23 07:59:34 +0000 Commit: Dmitry Chagin CommitDate: 2023-02-23 07:59:34 +0000 linux(4): Use predefined constant instead of hardcoded value Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D38713 MFC after: 3 days --- sys/compat/linux/linux_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_netlink.c b/sys/compat/linux/linux_netlink.c index 8a378d596187..69cd006ce4ef 100644 --- a/sys/compat/linux/linux_netlink.c +++ b/sys/compat/linux/linux_netlink.c @@ -302,7 +302,7 @@ rtnl_newlink_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, /* Convert interface type */ switch (ifinfo->ifi_type) { case IFT_ETHER: - ifinfo->ifi_type = 1; // ARPHRD_ETHER + ifinfo->ifi_type = LINUX_ARPHRD_ETHER; break; } ifinfo->ifi_flags = rtnl_if_flags_to_linux(ifinfo->ifi_flags);