mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02:00
![]() When port mirroring is added to a port, the bit position of the source
port, needs to be written to the register ANA_AC_PROBE_PORT_CFG. This
register is replicated for n_ports > 32, and therefore we need to derive
the correct register from the port number.
Before this patch, we wrongly calculate the register from portno /
BITS_PER_BYTE, where the divisor ought to be 32, causing any port >=8 to
be written to the wrong register. We fix this, by using do_div(), where
the dividend is the register, the remainder is the bit position and the
divisor is now 32.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
sparx5_calendar.c | ||
sparx5_dcb.c | ||
sparx5_ethtool.c | ||
sparx5_fdma.c | ||
sparx5_mactable.c | ||
sparx5_main_regs.h | ||
sparx5_main.c | ||
sparx5_main.h | ||
sparx5_mirror.c | ||
sparx5_netdev.c | ||
sparx5_packet.c | ||
sparx5_pgid.c | ||
sparx5_phylink.c | ||
sparx5_police.c | ||
sparx5_pool.c | ||
sparx5_port.c | ||
sparx5_port.h | ||
sparx5_psfp.c | ||
sparx5_ptp.c | ||
sparx5_qos.c | ||
sparx5_qos.h | ||
sparx5_sdlb.c | ||
sparx5_switchdev.c | ||
sparx5_tc_flower.c | ||
sparx5_tc_matchall.c | ||
sparx5_tc.c | ||
sparx5_tc.h | ||
sparx5_vcap_ag_api.c | ||
sparx5_vcap_ag_api.h | ||
sparx5_vcap_debugfs.c | ||
sparx5_vcap_debugfs.h | ||
sparx5_vcap_impl.c | ||
sparx5_vcap_impl.h | ||
sparx5_vlan.c |