git: de1770946d5b - stable/13 - linux(4): Use predefined constant instead of hardcoded value

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Sun, 26 Feb 2023 08:11:25 UTC
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=de1770946d5bfc231638ca9d5e0bb004d7a5e384

commit de1770946d5bfc231638ca9d5e0bb004d7a5e384
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-02-23 07:59:34 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-02-26 08:10:44 +0000

    linux(4): Use predefined constant instead of hardcoded value
    
    Reviewed by:            melifaro
    Differential Revision:  https://reviews.freebsd.org/D38713
    MFC after:              3 days
    
    (cherry picked from commit 200fe6e3a0c8f2fc4fb8f48abd6528418a8a370c)
---
 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 4cf872b3722d..bcbf39cdcb85 100644
--- a/sys/compat/linux/linux_netlink.c
+++ b/sys/compat/linux/linux_netlink.c
@@ -297,7 +297,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);