mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-24 03:37:16 +00:00
cxgbev(4): Use the correct source pf for T6 in the VF driver.
MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
e827b61cac
commit
d0fdafdb0e
|
@ -139,7 +139,10 @@ int t4vf_get_sge_params(struct adapter *adapter)
|
||||||
* This is based on the PF from which we're instantiated.
|
* This is based on the PF from which we're instantiated.
|
||||||
*/
|
*/
|
||||||
whoami = t4_read_reg(adapter, VF_PL_REG(A_PL_VF_WHOAMI));
|
whoami = t4_read_reg(adapter, VF_PL_REG(A_PL_VF_WHOAMI));
|
||||||
pf = G_SOURCEPF(whoami);
|
if (chip_id(adapter) <= CHELSIO_T5)
|
||||||
|
pf = G_SOURCEPF(whoami);
|
||||||
|
else
|
||||||
|
pf = G_T6_SOURCEPF(whoami);
|
||||||
|
|
||||||
s_hps = (S_HOSTPAGESIZEPF0 +
|
s_hps = (S_HOSTPAGESIZEPF0 +
|
||||||
(S_HOSTPAGESIZEPF1 - S_HOSTPAGESIZEPF0) * pf);
|
(S_HOSTPAGESIZEPF1 - S_HOSTPAGESIZEPF0) * pf);
|
||||||
|
|
Loading…
Reference in a new issue