Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 08:52:50 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r337113 - stable/11/sys/dev/mlx5/mlx5_en
Message-ID:  <201808020852.w728qo9b061881@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Aug  2 08:52:49 2018
New Revision: 337113
URL: https://svnweb.freebsd.org/changeset/base/337113

Log:
  MFC r336411:
  Use a mbuf header instead of a mbuf cluster for debugging interrupts in mlx5en(4).
  
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c	Thu Aug  2 08:51:55 2018	(r337112)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c	Thu Aug  2 08:52:49 2018	(r337113)
@@ -468,7 +468,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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808020852.w728qo9b061881>