Skip to contentSkip to conversation

Fix issue related with assigning two diffrent vids to the same interface.

PATCH New Kacper Ludwinski 3 participants 4 messages Sep 25, 2024 – Sep 26, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix issue related with assigning two diffrent vids to the same interface.

Fixes 476a4f0 ("selftests: forwarding: add a no_forwarding.sh test")
---
 tools/testing/selftests/net/forwarding/no_forwarding.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/forwarding/no_forwarding.sh +1 -1
index 9e677aa64a06..694ece9ba3a7 100755
@@ -202,7 +202,7 @@ one_bridge_two_pvids()
 	ip link set $swp2 master br0
 
 	bridge vlan add dev $swp1 vid 1 pvid untagged
-	bridge vlan add dev $swp1 vid 2 pvid untagged
+	bridge vlan add dev $swp2 vid 2 pvid untagged
 
 	run_test "Switch ports in VLAN-aware bridge with different PVIDs"
 
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/1 Fix issue related with assigning two diffrent vids to the same interface.

Fixes 476a4f05d9b8 ("selftests: forwarding: add a no_forwarding.sh test")
---
 tools/testing/selftests/net/forwarding/no_forwarding.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/forwarding/no_forwarding.sh +1 -1
index 9e677aa64a06..694ece9ba3a7 100755
@@ -202,7 +202,7 @@ one_bridge_two_pvids()
 	ip link set $swp2 master br0
 
 	bridge vlan add dev $swp1 vid 1 pvid untagged
-	bridge vlan add dev $swp1 vid 2 pvid untagged
+	bridge vlan add dev $swp2 vid 2 pvid untagged
 
 	run_test "Switch ports in VLAN-aware bridge with different PVIDs"
 
Signature · 1 line
2.43.0
reviewer
#2 lore raw
Quoted 5 lines · Kacper Ludwinski
Fixes 476a4f05d9b8 ("selftests: forwarding: add a no_forwarding.sh test")
---
 tools/testing/selftests/net/forwarding/no_forwarding.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

...

Hi Kacper,

Thanks for your patch.

Some feedback in process:

* Please do not post updated versions of patches within 24h of each other.

* Please do post new versions of patches in new threads,
with appropriate versions in the subject (v2 in this case). And some text under the scissors ('---') describing that the change is. b4 will handle this for you.

* Please include some text in the commit message, in this case describing the problem that is being resolved.

* Please tag patches for Networking as being targeted at either the net or net-next trees.

Subject: [PATCH net v2] ...

* Please refer to git history and include an appropriate prefix in the subject of the patch. In this case it looks like it should be 'selftests: forwarding:'

Subject: [PATCH net v2] selftests: forwarding: ...

* Please consider reading the netdev maintainers process guide
https://docs.kernel.org/process/maintainer-netdev.html

Lastly, there is a spelling error in the subject.
checkpatch.pl --codespell flagged this.

Signature · 1 line
pw-bot: changes-requested
Reviewed-by on v1 1/1
#3 lore raw
In reply to Kacper Ludwinski

Hi Kacper,

When you post a second patch, you need to add PATCHv2 in the subject.

Quoted 11 lines · Kacper Ludwinski
Fixes 476a4f05d9b8 ("selftests: forwarding: add a no_forwarding.sh test")
---
 tools/testing/selftests/net/forwarding/no_forwarding.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/forwarding/no_forwarding.sh +0 -0
index 9e677aa64a06..694ece9ba3a7 100755

tools/testing/selftests/net/forwarding/no_forwarding.sh one_bridge_two_pvids() · line 208

Quoted 8 lines
tools/testing/selftests/net/forwarding/no_forwarding.sh +1 -1
@@ -202,7 +202,7 @@ one_bridge_two_pvids()
 	ip link set $swp2 master br0
 
 	bridge vlan add dev $swp1 vid 1 pvid untagged
-	bridge vlan add dev $swp1 vid 2 pvid untagged
+	bridge vlan add dev $swp2 vid 2 pvid untagged
 
 	run_test "Switch ports in VLAN-aware bridge with different PVIDs"
 

The patch looks good to me.