svn commit: r336411 - head/sys/dev/mlx5/mlx5_en
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Jul 17 11:53:38 UTC 2018
Author: hselasky
Date: Tue Jul 17 11:53:37 2018
New Revision: 336411
URL: https://svnweb.freebsd.org/changeset/base/336411
Log:
Use a mbuf header instead of a mbuf cluster for debugging interrupts in mlx5en(4).
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c Tue Jul 17 11:47:56 2018 (r336410)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c Tue Jul 17 11:53:37 2018 (r336411)
@@ -513,7 +513,10 @@ mlx5e_rx_cq_comp(struct mlx5_core_cq *mcq)
int i = 0;
#ifdef HAVE_PER_CQ_EVENT_PACKET
- struct mbuf *mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, rq->wqe_sz);
+#if (MHLEN < 15)
+#error "MHLEN is too small"
+#endif
+ struct mbuf *mb = m_gethdr(M_NOWAIT, MT_DATA);
if (mb != NULL) {
/* this code is used for debugging purpose only */
More information about the svn-src-head
mailing list