aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_controlq.h
diff options
context:
space:
mode:
authorClaudiu Manoil <[email protected]>2021-04-09 07:16:13 +0000
committerJakub Kicinski <[email protected]>2021-04-10 01:22:09 +0000
commit6c5e6b4ccc1bb9ac56579a9aed25d517d2318be6 (patch)
tree93c528200ebed4a2845233a94ebd8695bf02cbaf /drivers/net/ethernet/intel/ice/ice_controlq.h
parentnet: enetc: fix TX ring interrupt storm (diff)
downloadkernel-6c5e6b4ccc1bb9ac56579a9aed25d517d2318be6.tar.gz
kernel-6c5e6b4ccc1bb9ac56579a9aed25d517d2318be6.zip
enetc: Use generic rule to map Tx rings to interrupt vectors
Even if the current mapping is correct for the 1 CPU and 2 CPU cases (currently enetc is included in SoCs with up to 2 CPUs only), better use a generic rule for the mapping to cover all possible cases. The number of CPUs is the same as the number of interrupt vectors: Per device Tx rings - device_tx_ring[idx], where idx = 0..n_rings_total-1 Per interrupt vector Tx rings - int_vector[i].ring[j], where i = 0..n_int_vects-1 j = 0..n_rings_per_v-1 Mapping rule - n_rings_per_v = n_rings_total / n_int_vects for i = 0..n_int_vects - 1: for j = 0..n_rings_per_v - 1: idx = n_int_vects * j + i int_vector[i].ring[j] <- device_tx_ring[idx] Signed-off-by: Claudiu Manoil <[email protected]> Tested-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_controlq.h')
0 files changed, 0 insertions, 0 deletions