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/hfsc.c
int rtnl_qdisc_hfsc_set_defcls(struct rtnl_qdisc* qdisc, uint32_t defcls)
{
    struct rtnl_hfsc_qdisc* hfsc;
    int err;

    if (!(hfsc = hfsc_qdisc_data(qdisc, &err)))
        return err;

    hfsc->qh_defcls = defcls;
    hfsc->qh_mask |= SCH_HFSC_QD_HAS_DEFCLS;

    return 0;
}
/**
 * Set default class of the hfsc qdisc to the specified value
 * @arg qdisc		qdisc to change
 * @arg defcls		new default class
 */
Set default class of the hfsc qdisc to the specified value
@arg qdisc           qdisc to change
@arg defcls          new default class
Set default class of the hfsc qdisc to the specified value @arg qdisc qdisc to change @arg defcls new default class
int rtnl_qdisc_hfsc_set_defcls(struct rtnl_qdisc* qdisc, uint32_t defcls)
{
    struct rtnl_hfsc_qdisc* hfsc;
    int err;
    if (!(hfsc = hfsc_qdisc_data(qdisc, &err)))
        return err;
    hfsc->qh_defcls = defcls;
    hfsc->qh_mask |= SCH_HFSC_QD_HAS_DEFCLS;
    return 0;
}
int rtnl_qdisc_hfsc_set_defcls ( struct rtnl_qdisc * qdisc , uint32_t defcls ) { struct rtnl_hfsc_qdisc * hfsc ; int err ; if ( ! ( hfsc = hfsc_qdisc_data ( qdisc , & err ) ) ) return err ; hfsc -> qh_defcls = defcls ; hfsc -> qh_mask |= SCH_HFSC_QD_HAS_DEFCLS ; return 0 ; }
Set default class of the hfsc qdisc to the specified value
 @arg qdisc           qdisc to change
 @arg defcls          new default class
Set default class of the hfsc qdisc to the specified value @arg qdisc qdisc to change @arg defcls new default class