|  |  |  | LQL Reference Manual |  | 
|---|
LQLQDiscDSMark — LQLQDiscDSMark models a DSMark queueing discipline.
struct LQLQDiscDSMark; LQLQDiscDSMark* lql_qdisc_dsmark_new (void); guint16 lql_qdisc_dsmark_get_indices (LQLQDiscDSMark *self); gboolean lql_qdisc_dsmark_set_indices (LQLQDiscDSMark *self, guint16 indices); guint16 lql_qdisc_dsmark_get_defaultIndex (LQLQDiscDSMark *self); gboolean lql_qdisc_dsmark_set_defaultIndex (LQLQDiscDSMark *self, guint16 defaultIndex); gboolean lql_qdisc_dsmark_get_tcIndex (LQLQDiscDSMark *self); gboolean lql_qdisc_dsmark_set_tcIndex (LQLQDiscDSMark *self, gboolean setTCIndex);
"default-index" guint : Read / Write "indices" guint : Read / Write "tc-index" gboolean : Read / Write
LQLQDiscDSMark models a DSMark queueing discipline.
Note: The DSMark QDisc does not support changing QDisc parameters after it has been created. Thus, lql_qdisc_modify() called on a LQLQDiscDSMark will always return FALSE.
For more information on the DSMark QDisc see the LARTC DSMark documentation.
LQLQDiscDSMark* lql_qdisc_dsmark_new (void);
Build a new instance of LQLQDiscDSMark.
| Returns : | A new LQLQDiscDSMark instance. | 
guint16 lql_qdisc_dsmark_get_indices (LQLQDiscDSMark *self);
Get the size of the mask/value table.
| self : | The LQLQDiscDSMark instance. | 
| Returns : | The size of the mask/value table. | 
gboolean lql_qdisc_dsmark_set_indices (LQLQDiscDSMark *self, guint16 indices);
Set the size of the mask/value table.
| self : | The LQLQDiscDSMark instance. | 
| indices : | |
| Returns : | TRUE on success, FALSE on failure. | 
guint16     lql_qdisc_dsmark_get_defaultIndex
                                            (LQLQDiscDSMark *self);Get the current default index setting.
| self : | The LQLQDiscDSMark instance. | 
| Returns : | The default index. | 
gboolean    lql_qdisc_dsmark_set_defaultIndex
                                            (LQLQDiscDSMark *self,
                                             guint16 defaultIndex);Set the current default index setting.
| self : | The LQLQDiscDSMark instance. | 
| defaultIndex : | |
| Returns : | TRUE on success, FALSE on failure. | 
gboolean lql_qdisc_dsmark_get_tcIndex (LQLQDiscDSMark *self);
Get whether the QDisc is currently setting the DS value into skb->tc_index.
| self : | The LQLQDiscDSMark instance. | 
| Returns : | The current value of setTCIndex. | 
gboolean lql_qdisc_dsmark_set_tcIndex (LQLQDiscDSMark *self, gboolean setTCIndex);
Set whether or not the QDisc is currently setting the DS value into skb->tc_index.
| self : | The LQLQDiscDSMark instance. | 
| setTCIndex : | TRUE to set skb->tc_index, FALSE to not. | 
| Returns : | TRUE on success, FALSE on failure. | 
| << LQLQDiscSFQ | LQLQDiscNetem >> |