From 843b264a851777a1caf65846f2e0b1f1c8d8f608 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Mon, 13 Apr 2020 20:12:47 +0000 Subject: [PATCH] cxgbe(4): Make sure 'flags' is at the same offset in structs toepcb and synq_entry. TAILQ_ENTRY isn't always the same size as two pointers. Reported by: rmacklem@ MFC after: 3 days Sponsored by: Chelsio Communications --- sys/dev/cxgbe/tom/t4_tom.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/cxgbe/tom/t4_tom.h b/sys/dev/cxgbe/tom/t4_tom.h index 604d9786e34d..c33a595cfcc8 100644 --- a/sys/dev/cxgbe/tom/t4_tom.h +++ b/sys/dev/cxgbe/tom/t4_tom.h @@ -176,11 +176,11 @@ struct ddp_pcb { }; struct toepcb { - TAILQ_ENTRY(toepcb) link; /* toep_list */ - u_int flags; /* miscellaneous flags */ - int refcount; struct tom_data *td; struct inpcb *inp; /* backpointer to host stack's PCB */ + u_int flags; /* miscellaneous flags */ + TAILQ_ENTRY(toepcb) link; /* toep_list */ + int refcount; struct vnet *vnet; struct vi_info *vi; /* virtual interface */ struct sge_wrq *ofld_txq;