[dpdk-stable] [PATCH v2] net/i40e: fix avx2 driver check for rx rearm

Coyle, David david.coyle at intel.com
Tue Jul 31 16:24:41 CEST 2018



-----Original Message-----
From: Van Haaren, Harry 
Sent: Monday, July 30, 2018 6:34 PM
To: dev at dpdk.org
Cc: Van Haaren, Harry <harry.van.haaren at intel.com>; Richardson, Bruce <bruce.richardson at intel.com>; stable at dpdk.org; thomas at monjalon.net; Coyle, David <david.coyle at intel.com>; Xing, Beilei <beilei.xing at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>
Subject: [PATCH v2] net/i40e: fix avx2 driver check for rx rearm

This commit fixes an infinite loop bug that could occur if the i40e AVX2 driver is used, and high traffic rates cause the mempool from which the rxq pulls mbufs to become empty.

The result would be an infinite loop of checking if we should perform an rx rearm, calling the function and an error return due the the mempool being emtpy.

The fix is to align the code in the AVX2 driver with the SSE driver, where an if() is used instead of a while(), allowing the thread to return from i40e rx function even if the mempool is empty.

Fixes: dafadd73762e ("net/i40e: add AVX2 Rx function")
Cc: bruce.richardson at intel.com
Cc: stable at dpdk.org

Reported-by: David Coyle <david.coyle at intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren at intel.com>
Acked-by: Brendan Ryan <brendan.ryan at intel.com>
Tested-by: David Coyle <david.coyle at intel.com>
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.



More information about the stable mailing list