Use a mbuf header instead of a mbuf cluster for debugging interrupts in mlx5en(4).
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
a6b2d28d05
commit
90c8e44125
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336411
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user