[Bug 287445] [qlnxe] QLogic/Marvell/Dell 41164 ping loss

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 12 Jul 2025 14:08:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287445

--- Comment #26 from Zhenlei Huang <zlei@FreeBSD.org> ---
(In reply to leper from comment #25)
> Jul 12 11:39:40 y-test kernel: [46345] ql0: link state changed to UP
> Jul 12 11:39:45 y-test kernel: [46350] ql0: [ecore_mcp_set_link:1645(qlnx-0)]Resetting link

It appears the either the timer or ioctl is shutting down the link. Can you
enable `dp_debug` and re-test ?

The following patch enables QL_DPRINT2 and QL_DPRINT4, should sufficient to
figure out which function ( timer or ioctl ) is to be blamed.


```
--- a/sys/dev/qlnx/qlnxe/qlnx_os.c
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.c
@@ -1205,8 +1205,8 @@ qlnx_init_hw(qlnx_host_t *ha)
                                ECORE_MSG_RDMA;
        ha->dp_level = ECORE_LEVEL_VERBOSE;*/
        //ha->dp_module = ECORE_MSG_RDMA | ECORE_MSG_INTR | ECORE_MSG_LL2;
-       ha->dp_level = ECORE_LEVEL_NOTICE;
-       //ha->dp_level = ECORE_LEVEL_VERBOSE;
+       ha->dp_module = ECORE_MSG_LINK;
+       ha->dp_level = ECORE_LEVEL_VERBOSE;

        ecore_init_dp(&ha->cdev, ha->dp_module, ha->dp_level, ha->pci_dev);

@@ -2168,7 +2168,7 @@ qlnx_add_sysctls(qlnx_host_t *ha)
                "\tpersonality = 4 => Ethernet and iWARP\n"
                "\tpersonality = 6 => Default in Shared Memory\n");

-        ha->dbg_level = 0;
+        ha->dbg_level = 0x0a;
         SYSCTL_ADD_UINT(ctx, children,
                 OID_AUTO, "debug", CTLFLAG_RW,
                 &ha->dbg_level, ha->dbg_level, "Debug Level");
```

-- 
You are receiving this mail because:
You are the assignee for the bug.