]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: adi: adin1110: Fix multicast offloading
authorAlexandru Tachici <alexandru.tachici@analog.com>
Fri, 20 Jan 2023 09:08:46 +0000 (11:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:45 +0000 (08:34 +0100)
commitc7da53be2d604e3b495bc69af423b497c559bae7
tree608843329d2d07777fddd506a9cf503a0d5fbc73
parent29ad96d2dbcea6e9ae023cc230f9035313162980
net: ethernet: adi: adin1110: Fix multicast offloading

[ Upstream commit 8a4f6d023221c4b052ddfa1db48b27871bad6e96 ]

Driver marked broadcast/multicast frames as offloaded incorrectly.
Mark them as offloaded only when HW offloading has been enabled.
This should happen only for ADIN2111 when both ports are bridged
by the software.

Fixes: ad7ba149f593 ("net: ethernet: adi: Add ADIN1110 support")
Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230120090846.18172-1-alexandru.tachici@analog.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/adi/adin1110.c