[PATCH] ibmveth: Fix use of ibmveth in a bridge.

Subsystems: ibm power virtual ethernet device driver, linux for powerpc (32-bit and 64-bit), networking drivers, the rest · Maintainers: Nick Child, Madhavan Srinivasan, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

STALE2190d LANDED

Status: Landed in mainline as 2ac8af0967aa on 2020-10-28.

4 messages, 3 authors, 2020-10-29 · open the first message on its own page

[PATCH] ibmveth: Fix use of ibmveth in a bridge.

From: Michal Suchanek <hidden>
Date: 2020-10-26 10:42:41

From: Thomas Bogendoerfer <redacted>

The check for src mac address in ibmveth_is_packet_unsupported is wrong.
Commit 6f2275433a2f wanted to shut down messages for loopback packets,
but now suppresses bridged frames, which are accepted by the hypervisor
otherwise bridging won't work at all.

Fixes: 6f2275433a2f ("ibmveth: Detect unsupported packets before sending to the hypervisor")
Signed-off-by: Michal Suchanek <redacted>
---
ms: added commit message
---
 drivers/net/ethernet/ibm/ibmveth.c | 6 ------
 1 file changed, 6 deletions(-)
diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c
index 7ef3369953b6..c3ec9ceed833 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
@@ -1031,12 +1031,6 @@ static int ibmveth_is_packet_unsupported(struct sk_buff *skb,
 		ret = -EOPNOTSUPP;
 	}
 
-	if (!ether_addr_equal(ether_header->h_source, netdev->dev_addr)) {
-		netdev_dbg(netdev, "source packet MAC address does not match veth device's, dropping packet.\n");
-		netdev->stats.tx_dropped++;
-		ret = -EOPNOTSUPP;
-	}
-
 	return ret;
 }
 
-- 
2.28.0

Re: [PATCH] ibmveth: Fix use of ibmveth in a bridge.

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-10-26 18:52:41

On Mon, 26 Oct 2020 11:42:21 +0100 Michal Suchanek wrote:
From: Thomas Bogendoerfer <redacted>

The check for src mac address in ibmveth_is_packet_unsupported is wrong.
Commit 6f2275433a2f wanted to shut down messages for loopback packets,
but now suppresses bridged frames, which are accepted by the hypervisor
otherwise bridging won't work at all.

Fixes: 6f2275433a2f ("ibmveth: Detect unsupported packets before sending to the hypervisor")
Signed-off-by: Michal Suchanek <redacted>
Since the From: line says Thomas we need a signoff from him.

Re: [PATCH] ibmveth: Fix use of ibmveth in a bridge.

From: Thomas Bogendoerfer <hidden>
Date: 2020-10-26 19:13:37

On Mon, 26 Oct 2020 11:52:37 -0700
Jakub Kicinski [off-list ref] wrote:
On Mon, 26 Oct 2020 11:42:21 +0100 Michal Suchanek wrote:
quoted
From: Thomas Bogendoerfer <redacted>

The check for src mac address in ibmveth_is_packet_unsupported is wrong.
Commit 6f2275433a2f wanted to shut down messages for loopback packets,
but now suppresses bridged frames, which are accepted by the hypervisor
otherwise bridging won't work at all.

Fixes: 6f2275433a2f ("ibmveth: Detect unsupported packets before sending to the hypervisor")
Signed-off-by: Michal Suchanek <redacted>
Since the From: line says Thomas we need a signoff from him.
you can add

Signed-off-by: <redacted>

Thomas.

-- 
SUSE Software Solutions Germany GmbH
HRB 36809 (AG Nürnberg)
Geschäftsführer: Felix Imendörffer

Re: [PATCH] ibmveth: Fix use of ibmveth in a bridge.

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-10-29 00:58:18

On Mon, 26 Oct 2020 20:04:07 +0100 Thomas Bogendoerfer wrote:
quoted
On Mon, 26 Oct 2020 11:42:21 +0100 Michal Suchanek wrote:  
quoted
From: Thomas Bogendoerfer <redacted>

The check for src mac address in ibmveth_is_packet_unsupported is wrong.
Commit 6f2275433a2f wanted to shut down messages for loopback packets,
but now suppresses bridged frames, which are accepted by the hypervisor
otherwise bridging won't work at all.

Fixes: 6f2275433a2f ("ibmveth: Detect unsupported packets before sending to the hypervisor")
Signed-off-by: Michal Suchanek <redacted>  
Since the From: line says Thomas we need a signoff from him.  
you can add

Signed-off-by: <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help