svn commit: r360189 - stable/12/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Wed Apr 22 07:24:31 UTC 2020


Author: np
Date: Wed Apr 22 07:24:30 2020
New Revision: 360189
URL: https://svnweb.freebsd.org/changeset/base/360189

Log:
  MFC r359897:
  
  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@
  Sponsored by:	Chelsio Communications

Modified:
  stable/12/sys/dev/cxgbe/tom/t4_tom.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/tom/t4_tom.h
==============================================================================
--- stable/12/sys/dev/cxgbe/tom/t4_tom.h	Wed Apr 22 07:12:18 2020	(r360188)
+++ stable/12/sys/dev/cxgbe/tom/t4_tom.h	Wed Apr 22 07:24:30 2020	(r360189)
@@ -187,11 +187,11 @@ struct aiotx_buffer {
 };
 
 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;


More information about the svn-src-stable-12 mailing list