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

int rtnl_sfq_set_quantum ( struct rtnl_qdisc *  qdisc,
int  quantum 

Set quantum of SFQ qdisc.

  • qdisc SFQ qdisc to be modified.
  • quantum New quantum in bytes.
    0 on success or a negative error code.

Definition at line 154 of file sfq.c.

      struct rtnl_sfq *sfq;
      sfq = sfq_alloc(qdisc);
      if (!sfq)
            return nl_errno(ENOMEM);

      sfq->qs_quantum = quantum;
      sfq->qs_mask |= SCH_SFQ_ATTR_QUANTUM;

      return 0;

Generated by  Doxygen 1.6.0   Back to index