diff options
| author | Navdeep Parhar <np@FreeBSD.org> | 2018-08-09 14:19:47 +0000 |
|---|---|---|
| committer | Navdeep Parhar <np@FreeBSD.org> | 2018-08-09 14:19:47 +0000 |
| commit | 5fc0f72f3b75dbb515ad8eb63e7c60d78762007d (patch) | |
| tree | 61ade11bfe92f58451aba8febe79efdb0ff16263 /sys/dev/cxgbe/common | |
| parent | c8e2123b6a217469f58f46af93be80fef2eaad2d (diff) | |
Notes
Diffstat (limited to 'sys/dev/cxgbe/common')
| -rw-r--r-- | sys/dev/cxgbe/common/common.h | 7 |
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) { |
