svn commit: r333121 - head/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Mon Apr 30 17:33:45 UTC 2018


Author: np
Date: Mon Apr 30 17:33:44 2018
New Revision: 333121
URL: https://svnweb.freebsd.org/changeset/base/333121

Log:
  cxgbe/t4_tom: Use appropriate macros instead of magic math while
  constructing the atid of an active open work request.
  
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/dev/cxgbe/tom/t4_connect.c

Modified: head/sys/dev/cxgbe/tom/t4_connect.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_connect.c	Mon Apr 30 17:31:06 2018	(r333120)
+++ head/sys/dev/cxgbe/tom/t4_connect.c	Mon Apr 30 17:33:44 2018	(r333121)
@@ -418,7 +418,7 @@ t4_connect(struct toedev *tod, struct socket *so, stru
 	else
 		rscale = 0;
 	mtu_idx = find_best_mtu_idx(sc, &inp->inp_inc, &settings);
-	qid_atid = (toep->ofld_rxq->iq.abs_id << 14) | toep->tid;
+	qid_atid = V_TID_QID(toep->ofld_rxq->iq.abs_id) | V_TID_TID(toep->tid);
 
 	if (isipv6) {
 		struct cpl_act_open_req6 *cpl = wrtod(wr);


More information about the svn-src-all mailing list