Skip to content

Commit

Permalink
Disable D6 check for linux P4 package. (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhar-krishnakumar authored Jan 8, 2025
1 parent a489035 commit f8c46d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ipu-plugin/ipuplugin/cmd/rootcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ var (
log.Info("Initializing IPU plugin")
if mode == types.IpuMode {
vsi, err := findVsiForPfInterface(mode, intf)
if err != nil {
/*In case, where default P4 package is loaded with 4 APFs, this check,
will fail. Note::For linux-P4 package, portMuxVsi(not used).
For redhat P4 we would need this check.
As a quick fix, restricting check to redhat P4 package only.
TODO: If we revert to redhat P4 package(unlikely), this check can be moved else-where.
*/
if (err != nil) && (p4pkg == "redhat") {
log.Errorf("Not able to find VSI->%d, for bridge interface->%v\n", vsi, intf)
exitWithError(err, 5)
} else {
Expand Down

0 comments on commit f8c46d8

Please sign in to comment.