Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

int rtnl_qdisc_prio_set_bands ( struct rtnl_qdisc *  qdisc,
int  bands 
)

Set number of bands of PRIO qdisc.

  • qdisc PRIO qdisc to be modified.
  • bands New number of bands.
    Returns:
    0 on success or a negative error code.

Definition at line 163 of file prio.c.

{
      struct rtnl_prio *prio;
      
      prio = prio_alloc(qdisc);
      if (!prio)
            return -NLE_NOMEM;

      prio->qp_bands = bands;
      prio->qp_mask |= SCH_PRIO_ATTR_BANDS;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index