mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
ibmveth: Fix use of ibmveth in a bridge.
The check for src mac address in ibmveth_is_packet_unsupported is wrong. Commit6f2275433awanted 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:6f2275433a("ibmveth: Detect unsupported packets before sending to the hypervisor") Signed-off-by: Michal Suchanek <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
committed by
Jakub Kicinski
parent
501b72ae24
commit
2ac8af0967
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user