OpenCloudOS-Kernel/drivers/net/ethernet/freescale/enetc
Claudiu Manoil 0574e2000f enetc: Fix tx rings bitmap iteration range, irq handling
The rings bitmap of an interrupt vector encodes
which of the device's rings were assigned to that
interrupt vector.
Hence the iteration range of the tx rings bitmap
(for_each_set_bit()) should be the total number of
Tx rings of that netdevice instead of the number of
rings assigned to the interrupt vector.
Since there are 2 cores, and one interrupt vector for
each core, the number of rings asigned to an interrupt
vector is half the number of available rings.
The impact of this error is that the upper half of the
tx rings could still generate interrupts during napi
polling.

Fixes: d4fd0404c1 ("enetc: Introduce basic PF and VF ENETC ethernet drivers")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-26 15:02:30 -07:00
..
Kconfig enetc: Add dynamic allocation of extended Rx BD rings 2020-03-10 15:48:54 -07:00
Makefile enetc: Make MDIO accessors more generic and export to include/linux/fsl 2020-01-05 23:22:32 -08:00
enetc.c enetc: Fix tx rings bitmap iteration range, irq handling 2020-06-26 15:02:30 -07:00
enetc.h net: enetc: add tc flower psfp offload driver 2020-05-01 16:08:20 -07:00
enetc_cbdr.c enetc: Configure the Time-Aware Scheduler via tc-taprio offload 2019-11-16 12:49:16 -08:00
enetc_ethtool.c enetc: Add dynamic allocation of extended Rx BD rings 2020-03-10 15:48:54 -07:00
enetc_hw.h enetc: Fix HW_VLAN_CTAG_TX|RX toggling 2020-06-19 20:00:33 -07:00
enetc_mdio.c enetc: Set MDIO_CFG_HOLD to the recommended value of 2 2020-01-05 23:22:32 -08:00
enetc_msg.c enetc: Add vf to pf messaging support 2019-01-24 21:55:53 -08:00
enetc_pci_mdio.c net: enetc: fix an issue about leak system resources 2020-05-04 10:51:20 -07:00
enetc_pf.c enetc: Fix HW_VLAN_CTAG_TX|RX toggling 2020-06-19 20:00:33 -07:00
enetc_pf.h enetc: Make MDIO accessors more generic and export to include/linux/fsl 2020-01-05 23:22:32 -08:00
enetc_ptp.c enetc: Add missing call to 'pci_free_irq_vectors()' in probe and remove functions 2019-08-31 23:53:17 -07:00
enetc_qos.c net:enetc: bug fix for qos sfi operate space after freed 2020-05-07 13:05:46 -07:00
enetc_vf.c enetc: Remove unused variable 'enetc_drv_name' 2020-03-23 13:09:32 -07:00