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
void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc* qdisc, int limit)
{
    struct rtnl_tbf* tbf;

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

    tbf->qt_limit = limit;
    tbf->qt_mask |= TBF_ATTR_LIMIT;
}
/**
 * Set limit of TBF qdisc.
 * @arg qdisc		TBF qdisc to be modified.
 * @arg limit		New limit in bytes.
 * @return 0 on success or a negative error code.
 */
Set limit of TBF qdisc.
@arg qdisc           TBF qdisc to be modified.
@arg limit           New limit in bytes.
@return 0 on success or a negative error code.
Set limit of TBF qdisc . @arg qdisc TBF qdisc to be modified . @arg limit New limit in bytes . @return 0 on success or a negative error code .
void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc* qdisc, int limit)
{
    struct rtnl_tbf* tbf;
    if (!(tbf = rtnl_tc_data(TC_CAST(qdisc))))
        BUG();
    tbf->qt_limit = limit;
    tbf->qt_mask |= TBF_ATTR_LIMIT;
}
void rtnl_qdisc_tbf_set_limit ( struct rtnl_qdisc * qdisc , int limit ) { struct rtnl_tbf * tbf ; if ( ! ( tbf = rtnl_tc_data ( TC_CAST ( qdisc ) ) ) ) BUG ( ) ; tbf -> qt_limit = limit ; tbf -> qt_mask |= TBF_ATTR_LIMIT ; }
Set limit of TBF qdisc.
Set limit of TBF qdisc .