Documentation ¶
Index ¶
- type Params
- type SwxPortTapParams
- type Tap
- func (tap *Tap) BindToPipelineInputPort(pl *pipeline.Pipeline, portID int, rxq uint16, bsz uint) error
- func (tap *Tap) BindToPipelineOutputPort(pl *pipeline.Pipeline, portID int, txq uint16, bsz uint) error
- func (tap *Tap) Fd() C.int
- func (tap *Tap) Free() error
- func (tap *Tap) Init(name string, params *Params, clean func()) error
- func (tap *Tap) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwxPortTapParams ¶
type SwxPortTapParams struct {
// contains filtered or unexported fields
}
func (*SwxPortTapParams) FreeParams ¶
func (e *SwxPortTapParams) FreeParams()
func (*SwxPortTapParams) GetReaderParams ¶
func (e *SwxPortTapParams) GetReaderParams() unsafe.Pointer
func (*SwxPortTapParams) GetWriterParams ¶
func (e *SwxPortTapParams) GetWriterParams() unsafe.Pointer
func (*SwxPortTapParams) PortName ¶
func (e *SwxPortTapParams) PortName() string
func (*SwxPortTapParams) PortType ¶
func (e *SwxPortTapParams) PortType() string
type Tap ¶
Tap represents a Tap record stored in a tap store
func (*Tap) BindToPipelineInputPort ¶
func (tap *Tap) BindToPipelineInputPort(pl *pipeline.Pipeline, portID int, rxq uint16, bsz uint) error
bind to given pipeline input port. A tap has 1 queue so only queue number 0 is valid.
func (*Tap) BindToPipelineOutputPort ¶
func (tap *Tap) BindToPipelineOutputPort(pl *pipeline.Pipeline, portID int, txq uint16, bsz uint) error
bind to given pipeline output port. A tap has 1 queue so only queue number 0 is valid.
func (*Tap) Free ¶
Free deletes the current Tap record and calls the clean callback function given at init
Click to show internal directories.
Click to hide internal directories.