Skip to content

Commit

Permalink
cnf network: qinq - mlx device id update
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaggapa committed Aug 22, 2024
1 parent 3c66af5 commit 8c56861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/cnf/core/network/internal/netparam/netvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ var (
VtySh = []string{"vtysh", "-c"}
// MlxDeviceID is the Mellanox SRIOV device ID.
MlxDeviceID = "1017"
// MlxBFDeviceID is the Mellanox Bluefield SRIOV Device ID

Check failure on line 30 in tests/cnf/core/network/internal/netparam/netvars.go

View workflow job for this annotation

GitHub Actions / build

Comment should end in a period (godot)
MlxBFDeviceID = "a2d6"
)
4 changes: 2 additions & 2 deletions tests/cnf/core/network/sriov/tests/qinq.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var _ = Describe("QinQ", Ordered, Label(tsparams.LabelQinQTestCases), ContinueOn
defineAndCreateNADs(nadCVLAN100, nadCVLAN101, nadMasterBond0, intNet1)
})

It("Verify network traffic over a 802.1ad QinQ tunnel between two SRIOV pods on the same PF",
FIt("Verify network traffic over a 802.1ad QinQ tunnel between two SRIOV pods on the same PF",
reportxml.ID("71676"), func() {
By("Define and create a server container")
serverAnnotation := defineNetworkAnnotation(srIovNetworkDot1AD, nadCVLAN100, true)
Expand Down Expand Up @@ -1102,7 +1102,7 @@ func defineAndCreateNADs(nadCVLAN100, nadCVLAN101, nadMasterBond0, intNet1 strin
func setVFPromiscMode(nodeName, srIovInterfacesUnderTest, sriovDeviceID, onOff string) {
promiscVFCommand := fmt.Sprintf("ethtool --set-priv-flags %s vf-true-promisc-support %s",
srIovInterfacesUnderTest, onOff)
if sriovDeviceID == netparam.MlxDeviceID {
if sriovDeviceID == netparam.MlxDeviceID || sriovDeviceID == netparam.MlxBFDeviceID {
promiscVFCommand = fmt.Sprintf("ip link set %s promisc on",
srIovInterfacesUnderTest)
}
Expand Down

0 comments on commit 8c56861

Please sign in to comment.