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
uint32_t rtnl_qdisc_hfsc_get_defcls(const struct rtnl_qdisc* qdisc)
{
    struct rtnl_hfsc_qdisc* hfsc;

    if ((hfsc = hfsc_qdisc_data(qdisc, NULL)) &&
        (hfsc->qh_mask & SCH_HFSC_QD_HAS_DEFCLS))
        return hfsc->qh_defcls;

    return TC_H_UNSPEC;
}
/**
 * Return default class of HFSC qdisc
 * @arg qdisc		hfsc qdisc object
 *
 * Returns the classid of the class where all unclassified traffic
 * goes to.
 *
 * @return classid or TC_H_UNSPEC if unspecified.
 */
Return default class of HFSC qdisc
@arg qdisc           hfsc qdisc object

Returns the classid of the class where all unclassified traffic
goes to.

@return classid or TC_H_UNSPEC if unspecified.
Return default class of HFSC qdisc @arg qdisc hfsc qdisc object Returns the classid of the class where all unclassified traffic goes to . @return classid or TC_H_UNSPEC if unspecified .
uint32_t rtnl_qdisc_hfsc_get_defcls(const struct rtnl_qdisc* qdisc)
{
    struct rtnl_hfsc_qdisc* hfsc;
    if ((hfsc = hfsc_qdisc_data(qdisc, NULL)) &&
        (hfsc->qh_mask & SCH_HFSC_QD_HAS_DEFCLS))
        return hfsc->qh_defcls;
    return TC_H_UNSPEC;
}
uint32_t rtnl_qdisc_hfsc_get_defcls ( const struct rtnl_qdisc * qdisc ) { struct rtnl_hfsc_qdisc * hfsc ; if ( ( hfsc = hfsc_qdisc_data ( qdisc , NULL ) ) && ( hfsc -> qh_mask & SCH_HFSC_QD_HAS_DEFCLS ) ) return hfsc -> qh_defcls ; return TC_H_UNSPEC ; }
Return default class of HFSC qdisc
 @arg qdisc           hfsc qdisc object
Return default class of HFSC qdisc @arg qdisc hfsc qdisc object