Searched hist:"68049 a5f4dcefdad248f37201a30461f687b0719" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth.h | diff 68049a5f4dcefdad248f37201a30461f687b0719 Mon Oct 08 09:16:31 CDT 2018 Ioana Ciocoi Radulescu <ruxandra.radulescu@nxp.com> dpaa2-eth: Don't account Tx confirmation frames on NAPI poll
Until now, both Rx and Tx confirmation frames handled during NAPI poll were counted toward the NAPI budget. However, Tx confirmations are lighter to process than Rx frames, which can skew the amount of work actually done inside one NAPI cycle.
Update the code to only count Rx frames toward the NAPI budget and set a separate threshold on how many Tx conf frames can be processed in one poll cycle.
The NAPI poll routine stops when either the budget is consumed by Rx frames or when Tx confirmation frames reach this threshold.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | dpaa2-eth.c | diff 68049a5f4dcefdad248f37201a30461f687b0719 Mon Oct 08 09:16:31 CDT 2018 Ioana Ciocoi Radulescu <ruxandra.radulescu@nxp.com> dpaa2-eth: Don't account Tx confirmation frames on NAPI poll
Until now, both Rx and Tx confirmation frames handled during NAPI poll were counted toward the NAPI budget. However, Tx confirmations are lighter to process than Rx frames, which can skew the amount of work actually done inside one NAPI cycle.
Update the code to only count Rx frames toward the NAPI budget and set a separate threshold on how many Tx conf frames can be processed in one poll cycle.
The NAPI poll routine stops when either the budget is consumed by Rx frames or when Tx confirmation frames reach this threshold.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|