]> www.infradead.org Git - users/dwmw2/linux.git/commit
ibmveth: Convert multicast list size for little-endian system
authorThomas Falcon <tlfalcon@linux.ibm.com>
Mon, 12 Aug 2019 21:13:06 +0000 (16:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:35:14 +0000 (10:35 +0100)
commitf6bd80bc62231a281b757059f8a7b1d8663d586a
tree2c7fae0b07f2760aa463c2dc0c44b13c774c1ff7
parentd45c33d890bc2fbe5485c2b0e964485e86dd4f66
ibmveth: Convert multicast list size for little-endian system

[ Upstream commit 66cf4710b23ab2adda11155684a2c8826f4fe732 ]

The ibm,mac-address-filters property defines the maximum number of
addresses the hypervisor's multicast filter list can support. It is
encoded as a big-endian integer in the OF device tree, but the virtual
ethernet driver does not convert it for use by little-endian systems.
As a result, the driver is not behaving as it should on affected systems
when a large number of multicast addresses are assigned to the device.

Reported-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ibm/ibmveth.c