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/dsmark.c
int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc* qdisc)
{
    struct rtnl_dsmark_qdisc* dsmark;

    if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc))))
        return -NLE_NOMEM;

    if (dsmark->qdm_mask & SCH_DSMARK_ATTR_SET_TC_INDEX)
        return dsmark->qdm_set_tc_index;
    else
        return -NLE_NOATTR;
}
/**
 * Get set-tc-index flag of DSMARK qdisc.
 * @arg qdisc		DSMARK qdisc to be modified.
 * @return 1 or 0 to indicate wehther the flag is enabled or a negative
 *         error code.
 */
Get set-tc-index flag of DSMARK qdisc.
@arg qdisc           DSMARK qdisc to be modified.
@return 1 or 0 to indicate wehther the flag is enabled or a negative
error code.
Get set - tc - index flag of DSMARK qdisc . @arg qdisc DSMARK qdisc to be modified . @return 1 or 0 to indicate wehther the flag is enabled or a negative error code .
int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc* qdisc)
{
    struct rtnl_dsmark_qdisc* dsmark;
    if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc))))
        return -NLE_NOMEM;
    if (dsmark->qdm_mask & SCH_DSMARK_ATTR_SET_TC_INDEX)
        return dsmark->qdm_set_tc_index;
    else
        return -NLE_NOATTR;
}
int rtnl_qdisc_dsmark_get_set_tc_index ( struct rtnl_qdisc * qdisc ) { struct rtnl_dsmark_qdisc * dsmark ; if ( ! ( dsmark = rtnl_tc_data ( TC_CAST ( qdisc ) ) ) ) return - NLE_NOMEM ; if ( dsmark -> qdm_mask & SCH_DSMARK_ATTR_SET_TC_INDEX ) return dsmark -> qdm_set_tc_index ; else return - NLE_NOATTR ; }
Get set-tc-index flag of DSMARK qdisc.
Get set - tc - index flag of DSMARK qdisc .