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

int rtnl_sfq_get_quantum ( struct rtnl_qdisc *  qdisc  ) 

Get quantum of SFQ qdisc.

  • qdisc SFQ qdisc.
    Returns:
    Quantum in bytes or a negative error code.

Definition at line 173 of file sfq.c.

References sfq_qdisc().

{
      struct rtnl_sfq *sfq;

      sfq = sfq_qdisc(qdisc);
      if (sfq && sfq->qs_mask & SCH_SFQ_ATTR_QUANTUM)
            return sfq->qs_quantum;
      else
            return nl_errno(ENOENT);
}


Generated by  Doxygen 1.6.0   Back to index