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 */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to