Skip to content

Commit

Permalink
net/avf: fix performance drop after port reset
Browse files Browse the repository at this point in the history
[ upstream commit 63b7be7 ]

Needs to reset rxq->rxrearm_start to 0 when reset_rx_queue(),
otherwise, the random value of rxrearm_start will cause performance drop
due to L3 contested accesses.

Fixes: 69dd4c3 ("net/avf: enable queue and device")

Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
Ninja-Mobius authored and kevintraynor committed Nov 23, 2020
1 parent 67ae385 commit 82d2e03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/avf/avf_rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ reset_rx_queue(struct avf_rx_queue *rxq)
rxq->pkt_first_seg = NULL;
rxq->pkt_last_seg = NULL;
rxq->rxrearm_nb = 0;
rxq->rxrearm_start = 0;
}

static inline void
Expand Down

0 comments on commit 82d2e03

Please sign in to comment.