The branch main has been updated by zlei:

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

commit 6e3c8c0f709ab0b9d70e2725e58f4a4ba7a4404e
Author:     Zhenlei Huang <z...@freebsd.org>
AuthorDate: 2025-09-09 10:04:54 +0000
Commit:     Zhenlei Huang <z...@freebsd.org>
CommitDate: 2025-09-09 10:04:54 +0000

    qlnxe: Support SIOCGIFXMEDIA ioctl
    
    ifconfig(8) will try SIOCGIFXMEDIA first and then retry SIOCGIFMEDIA if
    that fails. Since the driver reports extended media types, support
    SIOCGIFXMEDIA ioctl directly rather than doing another round.
    
    Reviewed by:    kbowling
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D52375
---
 sys/dev/qlnx/qlnxe/qlnx_os.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c
index 696604cf1202..9963f472c615 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -2721,7 +2721,9 @@ qlnx_ioctl(if_t ifp, u_long cmd, caddr_t data)
 
        case SIOCSIFMEDIA:
        case SIOCGIFMEDIA:
-               QL_DPRINT4(ha, "SIOCSIFMEDIA/SIOCGIFMEDIA (0x%lx)\n", cmd);
+       case SIOCGIFXMEDIA:
+               QL_DPRINT4(ha,
+                   "SIOCSIFMEDIA/SIOCGIFMEDIA/SIOCGIFXMEDIA (0x%lx)\n", cmd);
 
                ret = ifmedia_ioctl(ifp, ifr, &ha->media, cmd);
                break;

Reply via email to