memif

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 28 Imported by: 4

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(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 added in v1.2.0

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

NetNSInfo contains shared info for server and client

type Option added in v1.1.0

type Option func(o *memifOptions)

Option is an option for the connect server

func WithChangeNetNS added in v1.2.0

func WithChangeNetNS() Option

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

func WithDirectMemif added in v1.1.0

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

Jump to

Keyboard shortcuts

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