kernel

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package kernel implements client and server kernel mechanism chain element supports both kernel and smartvf datapath

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVethPeerName

func GetVethPeerName(conn *networkservice.Connection, ifPrefix string, isClient bool) string

GetVethPeerName get appropriate veth peer interface name for the given connection.

func NewClient

func NewClient(bridgeName string, mutex sync.Locker, parentIfRefCountMap map[string]int) networkservice.NetworkServiceClient

NewClient returns a client chain element implementing kernel mechanism with veth pair or smartvf

func NewSmartVFServer

func NewSmartVFServer(bridgeName string, mutex sync.Locker, parentIfRefCountMap map[string]int) networkservice.NetworkServiceServer

NewSmartVFServer - return a new Smart VF Server chain element for kernel mechanism

func NewVethServer

func NewVethServer(bridgeName string, mutex sync.Locker, parentIfRefCountMap map[string]int) networkservice.NetworkServiceServer

NewVethServer - return a new Veth Server chain element for kernel mechanism

func SetInterfacesUp

func SetInterfacesUp(logger log.Logger, ifaceNames ...string) error

SetInterfacesUp - make the interfaces state to up

Types

This section is empty.

Jump to

Keyboard shortcuts

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