]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cxgb4 : Fill in number of DCB traffic classes supported
authorAnish Bhatt <anish@chelsio.com>
Fri, 17 Jul 2015 20:12:32 +0000 (13:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 07:23:23 +0000 (00:23 -0700)
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c

index 56a81b8f7c54a6717c70a7e4f2eee3e3092a504f..052c660aca80a8dd06593112c9961a6bdda07309 100644 (file)
@@ -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;
 }