aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/common
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2018-08-09 14:19:47 +0000
committerNavdeep Parhar <np@FreeBSD.org>2018-08-09 14:19:47 +0000
commit5fc0f72f3b75dbb515ad8eb63e7c60d78762007d (patch)
tree61ade11bfe92f58451aba8febe79efdb0ff16263 /sys/dev/cxgbe/common
parentc8e2123b6a217469f58f46af93be80fef2eaad2d (diff)
Notes
Diffstat (limited to 'sys/dev/cxgbe/common')
-rw-r--r--sys/dev/cxgbe/common/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/common/common.h b/sys/dev/cxgbe/common/common.h
index d529fb85efe15..044582db6ede8 100644
--- a/sys/dev/cxgbe/common/common.h
+++ b/sys/dev/cxgbe/common/common.h
@@ -441,6 +441,13 @@ static inline int is_ftid(const struct adapter *sc, u_int tid)
tid <= sc->tids.ftid_end);
}
+static inline int is_hpftid(const struct adapter *sc, u_int tid)
+{
+
+ return (sc->tids.nhpftids > 0 && tid >= sc->tids.hpftid_base &&
+ tid <= sc->tids.hpftid_end);
+}
+
static inline int is_etid(const struct adapter *sc, u_int tid)
{