openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/route/qdisc/tbf.c
int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc* qdisc)
{
    struct rtnl_tbf* tbf;

    if (!(tbf = rtnl_tc_data(TC_CAST(qdisc))))
        BUG();

    if (tbf->qt_mask & TBF_ATTR_RATE)
        return tbf->qt_rate_bucket;
    else
        return -1;
}
/**
 * Get rate bucket size of TBF qdisc.
 * @arg qdisc		TBF qdisc.
 * @return Size of rate bucket or a negative error code.
 */
Get rate bucket size of TBF qdisc.
@arg qdisc           TBF qdisc.
@return Size of rate bucket or a negative error code.
Get rate bucket size of TBF qdisc . @arg qdisc TBF qdisc . @return Size of rate bucket or a negative error code .
int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc* qdisc)
{
    struct rtnl_tbf* tbf;
    if (!(tbf = rtnl_tc_data(TC_CAST(qdisc))))
        BUG();
    if (tbf->qt_mask & TBF_ATTR_RATE)
        return tbf->qt_rate_bucket;
    else
        return -1;
}
int rtnl_qdisc_tbf_get_rate_bucket ( struct rtnl_qdisc * qdisc ) { struct rtnl_tbf * tbf ; if ( ! ( tbf = rtnl_tc_data ( TC_CAST ( qdisc ) ) ) ) BUG ( ) ; if ( tbf -> qt_mask & TBF_ATTR_RATE ) return tbf -> qt_rate_bucket ; else return -1 ; }
Get rate bucket size of TBF qdisc.
Get rate bucket size of TBF qdisc .