cxgbe(4): Initialize mps_bg_map to an invalid value if it's not known.

Sponsored by:	Chelsio Communications

(cherry picked from commit 9de0036b55dcdabc54fa69ea6e583b22d739818c)
This commit is contained in:
Navdeep Parhar 2024-04-30 12:51:29 -07:00
parent 92383a2c84
commit 67faf45be5
2 changed files with 2 additions and 2 deletions

View file

@ -6742,7 +6742,7 @@ static unsigned int t4_get_mps_bg_map(struct adapter *adap, int idx)
{
u32 n;
if (adap->params.mps_bg_map)
if (adap->params.mps_bg_map != UINT32_MAX)
return ((adap->params.mps_bg_map >> (idx << 3)) & 0xff);
n = adap->params.nports;

View file

@ -5333,7 +5333,7 @@ get_params__post_init(struct adapter *sc)
if (rc == 0)
sc->params.mps_bg_map = val[0];
else
sc->params.mps_bg_map = 0;
sc->params.mps_bg_map = UINT32_MAX; /* Not a legal value. */
/*
* Determine whether the firmware supports the filter2 work request.