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

int rtnl_sfq_get_divisor ( struct rtnl_qdisc *  qdisc  ) 

Get divisor of SFQ qdisc.

  • qdisc SFQ qdisc.
    Returns:
    Divisor in number of entries or a negative error code.

Definition at line 262 of file sfq.c.

References sfq_qdisc().

{
      struct rtnl_sfq *sfq;

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


Generated by  Doxygen 1.6.0   Back to index