mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 06:07:31 -04:00
cxgbe(4): Fix the output of the "tids" sysctl on T6.
This commit is contained in:
parent
a2d8f9d2fc
commit
de58013128
1 changed files with 6 additions and 1 deletions
|
|
@ -7237,7 +7237,12 @@ sysctl_tids(SYSCTL_HANDLER_ARGS)
|
|||
|
||||
if (t->ntids) {
|
||||
if (t4_read_reg(sc, A_LE_DB_CONFIG) & F_HASHEN) {
|
||||
uint32_t b = t4_read_reg(sc, A_LE_DB_SERVER_INDEX) / 4;
|
||||
uint32_t b;
|
||||
|
||||
if (chip_id(sc) <= CHELSIO_T5)
|
||||
b = t4_read_reg(sc, A_LE_DB_SERVER_INDEX) / 4;
|
||||
else
|
||||
b = t4_read_reg(sc, A_LE_DB_SRVR_START_INDEX);
|
||||
|
||||
if (b) {
|
||||
sbuf_printf(sb, "TID range: 0-%u, %u-%u", b - 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue