remarkable-linux/drivers/net/ethernet/sfc
Ben Hutchings 3132d2827d sfc: Fix division by zero when using one RX channel and no SR-IOV
If RSS is disabled on the PF (efx->n_rx_channels == 1) we try to set
up the indirection table so that VFs can use it, setting
efx->rss_spread = efx_vf_size(efx).  But if SR-IOV was disabled at
compile time, this evaluates to 0 and we end up dividing by zero when
initialising the table.

I considered changing the fallback definition of efx_vf_size() to
return 1, but its value is really meaningless if we are not going to
enable VFs.  Therefore add a condition of efx_sriov_wanted(efx) in
efx_probe_interrupts().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2012-05-08 18:26:40 +01:00
..
bitfield.h sfc: Minor formatting cleanup 2012-02-22 20:48:38 +00:00
efx.c sfc: Fix division by zero when using one RX channel and no SR-IOV 2012-05-08 18:26:40 +01:00
efx.h sfc: Run event/IRQ self-test asynchronously when interface is brought up 2012-03-06 18:14:15 +00:00
enum.h
ethtool.c sfc: Add SR-IOV back-end support for SFC9000 family 2012-02-16 00:25:13 +00:00
falcon.c sfc: Allocate SRAM between buffer table and descriptor caches at init time 2012-02-16 00:25:12 +00:00
falcon_boards.c sfc: Log the part number on probe 2012-03-06 18:14:16 +00:00
falcon_xmac.c
filter.c
filter.h
io.h
Kconfig sfc: Add SR-IOV back-end support for SFC9000 family 2012-02-16 00:25:13 +00:00
Makefile sfc: Add SR-IOV back-end support for SFC9000 family 2012-02-16 00:25:13 +00:00
mcdi.c sfc: Add SR-IOV back-end support for SFC9000 family 2012-02-16 00:25:13 +00:00
mcdi.h sfc: Add SR-IOV back-end support for SFC9000 family 2012-02-16 00:25:13 +00:00
mcdi_mac.c sfc: Add SR-IOV back-end support for SFC9000 family 2012-02-16 00:25:13 +00:00
mcdi_mon.c sfc: Minor formatting cleanup 2012-02-22 20:48:38 +00:00
mcdi_pcol.h
mcdi_phy.c
mdio_10g.c
mdio_10g.h
mtd.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
net_driver.h sfc: Remove efx_channel::last_eventq_read_ptr 2012-03-06 18:14:15 +00:00
nic.c sfc: Run event/IRQ self-test asynchronously when interface is brought up 2012-03-06 18:14:15 +00:00
nic.h sfc: Log the part number on probe 2012-03-06 18:14:16 +00:00
phy.h
qt202x_phy.c
regs.h
rx.c sfc: Update comments on efx_rx_packet_gro() 2012-03-06 18:14:14 +00:00
selftest.c sfc: Run event/IRQ self-test asynchronously when interface is brought up 2012-03-06 18:14:15 +00:00
selftest.h sfc: Run event/IRQ self-test asynchronously when interface is brought up 2012-03-06 18:14:15 +00:00
siena.c sfc: Remove redundant function efx_nic_has_mc() 2012-03-06 18:14:13 +00:00
siena_sriov.c sfc: Fix calculation of vf_i in map_vi_index() 2012-03-06 18:14:13 +00:00
spi.h
tenxpress.c
tx.c sfc: Minor formatting cleanup 2012-02-22 20:48:38 +00:00
txc43128_phy.c
vfdi.h sfc: Specify that the VFDI status page has page alignment and size 2012-02-22 20:48:07 +00:00
workarounds.h