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 5a7de2b42c
)
This commit is contained in:
parent
1f1aa1aa96
commit
fe5ee07a11
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user