git: 5ad5cf507910 - main - linux(4): Be verbose about unsupported ioctl commands on ifreq ioctl

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Thu, 17 Aug 2023 19:58:35 UTC
The branch main has been updated by dchagin:

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

commit 5ad5cf507910a87188e53f94cb046d6faa0de2bb
Author:     Alvin Chen <weike.chen_dell.com>
AuthorDate: 2023-08-17 19:57:16 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-08-17 19:57:16 +0000

    linux(4): Be verbose about unsupported ioctl commands on ifreq ioctl
    
    Differential revision:  https://reviews.freebsd.org/D39786
    MFC after:              1 month
---
 sys/compat/linux/linux_ioctl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 3b2727afd179..413d761520d3 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -2289,6 +2289,9 @@ linux_ioctl_socket_ifreq(struct thread *td, int fd, u_int cmd,
 		cmd = SIOCGPRIVATE_1;
 		break;
 	default:
+		LINUX_RATELIMIT_MSG_OPT2(
+		    "ioctl_socket_ifreq fd=%d, cmd=0x%x is not implemented",
+		    fd, cmd);
 		return (ENOIOCTL);
 	}