Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:05:52 -0000
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r345612 - stable/12/sys/dev/cxgbe
Message-ID:  <201903272150.x2RLo72x051853@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Mar 27 21:50:07 2019
New Revision: 345612
URL: https://svnweb.freebsd.org/changeset/base/345612

Log:
  MFC r343233:
  
  cxgbe(4): Clear the reply-pending status of a hashfilter when the reply
  indicates an error.  Also, do not remove it twice from the hf list in
  this case.
  
  Submitted by:	Krishnamraju Eraparaju @ Chelsio
  Sponsored by:	Chelsio Communicatons

Modified:
  stable/12/sys/dev/cxgbe/t4_filter.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/t4_filter.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_filter.c	Wed Mar 27 21:50:01 2019	(r345611)
+++ stable/12/sys/dev/cxgbe/t4_filter.c	Wed Mar 27 21:50:07 2019	(r345612)
@@ -1229,6 +1229,7 @@ t4_hashfilter_ao_rpl(struct sge_iq *iq, const struct r
 		/* provide errno instead of tid to ioctl */
 		f->tid = act_open_rpl_status_to_errno(status);
 		f->valid = 0;
+		f->pending = 0;
 		if (act_open_has_tid(status))
 			release_tid(sc, GET_TID(cpl), &sc->sge.ctrlq[0]);
 		free_filter_resources(f);
@@ -1587,7 +1588,6 @@ set_hashfilter(struct adapter *sc, struct t4_filter *t
 				f->locked = 0;
 				t->idx = f->tid;
 			} else {
-				remove_hf(sc, f);
 				rc = f->tid;
 				free(f, M_CXGBE);
 			}





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903272150.x2RLo72x051853>