mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 00:15:49 -04:00
cxgb4 : Fill in number of DCB traffic classes supported
Signed-off-by: Anish Bhatt <anish@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a85c2eb311
commit
8d6541b7bc
@@ -1193,6 +1193,8 @@ static int cxgb4_cee_peer_getpg(struct net_device *dev, struct cee_pg *pg)
|
||||
for (i = 0; i < CXGB4_MAX_PRIORITY; i++)
|
||||
pg->pg_bw[i] = pcmd.u.dcb.pgrate.pgrate[i];
|
||||
|
||||
pg->tcs_supported = pcmd.u.dcb.pgrate.num_tcs_supported;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1210,6 +1212,8 @@ static int cxgb4_cee_peer_getpfc(struct net_device *dev, struct cee_pfc *pfc)
|
||||
*/
|
||||
pfc->pfc_en = bitswap_1(pi->dcb.pfcen);
|
||||
|
||||
pfc->tcs_supported = pi->dcb.pfc_num_tcs_supported;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user