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_set_default_index(struct rtnl_qdisc* qdisc,
                                        uint16_t default_index)
{
    struct rtnl_dsmark_qdisc* dsmark;

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

    dsmark->qdm_default_index = default_index;
    dsmark->qdm_mask |= SCH_DSMARK_ATTR_DEFAULT_INDEX;

    return 0;
}
/**
 * Set default index of DSMARK qdisc.
 * @arg qdisc		DSMARK qdisc to be modified.
 * @arg default_index	New default index.
 * @return 0 on success or a negative error code.
 */
Set default index of DSMARK qdisc.
@arg qdisc           DSMARK qdisc to be modified.
@arg default_index   New default index.
@return 0 on success or a negative error code.
Set default index of DSMARK qdisc . @arg qdisc DSMARK qdisc to be modified . @arg default_index New default index . @return 0 on success or a negative error code .
int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc* qdisc,
                                        uint16_t default_index)
{
    struct rtnl_dsmark_qdisc* dsmark;
    if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc))))
        return -NLE_NOMEM;
    dsmark->qdm_default_index = default_index;
    dsmark->qdm_mask |= SCH_DSMARK_ATTR_DEFAULT_INDEX;
    return 0;
}
int rtnl_qdisc_dsmark_set_default_index ( struct rtnl_qdisc * qdisc , uint16_t default_index ) { struct rtnl_dsmark_qdisc * dsmark ; if ( ! ( dsmark = rtnl_tc_data ( TC_CAST ( qdisc ) ) ) ) return - NLE_NOMEM ; dsmark -> qdm_default_index = default_index ; dsmark -> qdm_mask |= SCH_DSMARK_ATTR_DEFAULT_INDEX ; return 0 ; }
Set default index of DSMARK qdisc.
Set default index of DSMARK qdisc .