LQLQDiscDSMark

LQLQDiscDSMark — LQLQDiscDSMark models a DSMark queueing discipline.

Synopsis




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);

Object Hierarchy


  GObject
   +----LQLElement
         +----LQLQDisc
               +----LQLQDiscDSMark

Properties


  "default-index"        guint                : Read / Write
  "indices"              guint                : Read / Write
  "tc-index"             gboolean             : Read / Write

Description

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.

Details

struct LQLQDiscDSMark

struct LQLQDiscDSMark;


lql_qdisc_dsmark_new ()

LQLQDiscDSMark* lql_qdisc_dsmark_new        (void);

Build a new instance of LQLQDiscDSMark.

Returns : A new LQLQDiscDSMark instance.

lql_qdisc_dsmark_get_indices ()

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.

lql_qdisc_dsmark_set_indices ()

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.

lql_qdisc_dsmark_get_defaultIndex ()

guint16     lql_qdisc_dsmark_get_defaultIndex
                                            (LQLQDiscDSMark *self);

Get the current default index setting.

self : The LQLQDiscDSMark instance.
Returns : The default index.

lql_qdisc_dsmark_set_defaultIndex ()

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.

lql_qdisc_dsmark_get_tcIndex ()

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.

lql_qdisc_dsmark_set_tcIndex ()

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.

Properties

"default-index" (guint : Read / Write)

Set/Get the default index into the mask/value table.

"indices" (guint : Read / Write)

Set/Get the size of the mask/value table.

"tc-index" (gboolean : Read / Write)

Set/Get whether or not the kernel places the DS value into skb->tc_index.

See Also

LARTC: DSMark