-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
99f3e30
commit 8ff4d0c
Showing
5 changed files
with
527 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
internal/daemon/vendor-specific-plugins/marvell/debug-dp/debugdp.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.