aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2021-01-18 16:13:17 +0100
committerTony Nguyen <[email protected]>2021-02-12 10:36:57 -0800
commitf1b1f409bf7903ff585528b1e81b11fe077e9fee (patch)
tree3049aaf08ab480f46acea67d59baa05e3001e765 /lib/mpi/mpi-mod.c
parentf7bb0d71d65862d4386f613e60064e3f2b1d31db (diff)
ice: store the result of ice_rx_offset() onto ice_ring
Output of ice_rx_offset() is based on ethtool's priv flag setting, which when changed, causes PF reset (disables napi, frees irqs, loads different Rx mem model, etc.). This means that within napi its result is constant and there is no reason to call it per each processed frame. Add new 'rx_offset' field to ice_ring that is meant to hold the ice_rx_offset() result and use it within ice_clean_rx_irq(). Furthermore, use it within ice_alloc_mapped_page(). Reviewed-by: Björn Töpel <[email protected]> Signed-off-by: Maciej Fijalkowski <[email protected]> Tested-by: Tony Brelinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions