memif

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package memif provides a chain element for the memif mechanism using vpp

Index

Constants

View Source
const (
	// MECHANISM string
	MECHANISM = memif.MECHANISM
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(chainCtx context.Context, vppConn api.Connection, options ...Option) networkservice.NetworkServiceClient

NewClient provides a NetworkServiceClient chain elements that support the memif Mechanism

func NewServer

func NewServer(chainCtx context.Context, vppConn api.Connection, options ...Option) networkservice.NetworkServiceServer

NewServer provides a NetworkServiceServer chain elements that support the memif Mechanism

Types

type NetNSInfo

type NetNSInfo struct {
	// contains filtered or unexported fields
}

NetNSInfo contains shared info for server and client

type Option

type Option func(o *memifOptions)

Option is an option for the connect server

func WithChangeNetNS

func WithChangeNetNS() Option

WithChangeNetNS sets if memif client/server should change net NS instead of using own one for creating socket

func WithDirectMemif

func WithDirectMemif() Option

WithDirectMemif turns on direct memif logic

Directories

Path Synopsis
Package memifproxy provides a NetworkServiceClient chain element to 'proxy' to the memif control socket This is done in case the vpp instance can't open the memif socketfile
Package memifproxy provides a NetworkServiceClient chain element to 'proxy' to the memif control socket This is done in case the vpp instance can't open the memif socketfile
Package memifrxmode provides a NetworkService chain elements to set ADAPTIVE rx mode for memif interfaces
Package memifrxmode provides a NetworkService chain elements to set ADAPTIVE rx mode for memif interfaces

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL