Skip to content

Commit

Permalink
Add CBP(),DBP() to Marvell VSP
Browse files Browse the repository at this point in the history
This Commits adds CreateBridgePort() and DeleteBridgePort() API Support
in Marvell VSP Additionally, it integrates the OVS with netdev or DPDK data plane
and debug data plane functionality

Signed-off-by: Alkama Hasan <[email protected]>
  • Loading branch information
alkama-hasan committed Jan 28, 2025
1 parent 99f3e30 commit 8ff4d0c
Show file tree
Hide file tree
Showing 5 changed files with 527 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ spec:
mountPropagation: Bidirectional
- name: proc
mountPath: /proc
- name: ovs-bin
mountPath: /usr/local/bin/
- name: ovs-db
mountPath: /usr/local/var/run/openvswitch/
volumes:
- name: mrvl-vsp-mount
hostPath:
Expand All @@ -52,4 +56,10 @@ spec:
path: /var/run/netns
- name: proc
hostPath:
path: /proc/
path: /proc/
- name: ovs-bin
hostPath:
path: /usr/local/bin/
- name: ovs-db
hostPath:
path: /usr/local/var/run/openvswitch/
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package DebugDP

import (
"github.com/go-logr/logr"
ctrl "sigs.k8s.io/controller-runtime"
)

type DebugDP struct {
log logr.Logger
}

func NewDebugDP() *DebugDP {
return &DebugDP{
log: ctrl.Log.WithName("MarvellVSP:DebugDP"),
}
}

func (debugDP *DebugDP) AddPortToDataPlane(bridgeName string, portName string, vfPCIAddres string, isDPDK bool) error {
debugDP.log.Info("AddPortToBridge ", "bridgeName", bridgeName, "PortName", portName)
return nil
}

func (debugDP *DebugDP) DeletePortFromDataPlane(bridgeName string, portName string) error {
debugDP.log.Info("DeletePortFromBridge ", "bridgeName", bridgeName, "PortName", portName)
return nil

}

func (debugDP *DebugDP) InitDataPlane(bridgeName string) error {
debugDP.log.Info("Init Data plane", "bridgeName", bridgeName)
return nil
}

func (debugDP *DebugDP) ReadAllPortFromDataPlane(bridgeName string) (string, error) {
debugDP.log.Info("ReadAllPortFromBridge ", "bridgeName", bridgeName)
return "", nil
}
func (debugDP *DebugDP) DeleteDataplane(bridgeName string) error {
debugDP.log.Info("DeleteDataplane", "bridgeName", bridgeName)
return nil
}
Loading

0 comments on commit 8ff4d0c

Please sign in to comment.