Date: Tue, 12 Oct 2021 12:13:35 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: fe5ee07a11ce - stable/13 - mlx4en(4): Fix wrong mbuf cluster size in mlx4_en_debugnet_init() Message-ID: <202110121213.19CCDZu1068810@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=fe5ee07a11ced27eab9c6a6bd0f3e27d99423ba8 commit fe5ee07a11ced27eab9c6a6bd0f3e27d99423ba8 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-10-05 08:46:56 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2021-10-12 12:12:00 +0000 mlx4en(4): Fix wrong mbuf cluster size in mlx4_en_debugnet_init() This fixes an "invalid cluster size" panic when debugnet is activated. panic() m_getzone() debugnet_mbuf_reinit() debugnet_any_ifnet_update() ifhwioctl() ifioctl() Submitted by: ae@ PR: 258923 Sponsored by: NVIDIA Networking (cherry picked from commit 5a7de2b42caf6241e87b417a0521e9ab303989d7) --- sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c b/sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c index eec620f5b90e..672affcce623 100644 --- a/sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c +++ b/sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c @@ -2904,7 +2904,7 @@ mlx4_en_debugnet_init(struct ifnet *dev, int *nrxr, int *ncl, int *clsize) mutex_lock(&priv->mdev->state_lock); *nrxr = priv->rx_ring_num; *ncl = DEBUGNET_MAX_IN_FLIGHT; - *clsize = priv->rx_mb_size; + *clsize = MCLBYTES; mutex_unlock(&priv->mdev->state_lock); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110121213.19CCDZu1068810>