cxgbe(4): Adjust ntids to account for nhptids in the TOE case too.

This should have been part of r337538.
This commit is contained in:
Navdeep Parhar 2018-08-17 20:28:31 +00:00
parent 72049e7395
commit a56e2056a3

View File

@ -3992,6 +3992,12 @@ get_params__post_init(struct adapter *sc)
return (rc);
}
sc->tids.ntids = val[0];
if (sc->params.fw_vers <
(V_FW_HDR_FW_VER_MAJOR(1) | V_FW_HDR_FW_VER_MINOR(20) |
V_FW_HDR_FW_VER_MICRO(5) | V_FW_HDR_FW_VER_BUILD(0))) {
MPASS(sc->tids.ntids >= sc->tids.nhpftids);
sc->tids.ntids -= sc->tids.nhpftids;
}
sc->tids.natids = min(sc->tids.ntids / 2, MAX_ATIDS);
if (val[2] > val[1]) {
sc->tids.stid_base = val[1];