FreeBSD/sys/dev/bxe/bxe.c
/* must be called after sriov-enable */
must be called after sriov-enable
must be called after sriov - enable
static int
bxe_set_qm_cid_count(struct bxe_softc *sc)
{
    int cid_count = BXE_L2_MAX_CID(sc);
    if (IS_SRIOV(sc)) {
        cid_count += BXE_VF_CIDS;
    }
    if (CNIC_SUPPORT(sc)) {
        cid_count += CNIC_CID_MAX;
    }
    return (roundup(cid_count, QM_CID_ROUND));
}
static int bxe_set_qm_cid_count ( struct bxe_softc * sc ) { int cid_count = BXE_L2_MAX_CID ( sc ) ; if ( IS_SRIOV ( sc ) ) { cid_count += BXE_VF_CIDS ; } if ( CNIC_SUPPORT ( sc ) ) { cid_count += CNIC_CID_MAX ; } return ( roundup ( cid_count , QM_CID_ROUND ) ) ; }
must be called after sriov-enable
must be called after sriov - enable