[dpdk-dev] [PATCH v3] net/mlx5: fix link status is always inconsist

Ferruh Yigit ferruh.yigit at intel.com
Wed Feb 1 11:57:45 CET 2017


On 1/31/2017 3:40 PM, Nélio Laranjeiro wrote:
> On Tue, Jan 31, 2017 at 03:13:38PM +0200, Shahaf Shuler wrote:
>> Query the link status can end up in an inconsist state where the port is
>> down but it is reporting speed. For that another query is scheduled for a
>> later time.
>> A race condition is possible between the scheduled call and other link
>> status interrupt handlers. When the scheduled query by-pass those handlers,
>> the link status will be stuck in an in-consist state.
>> This patch addresses the race condition by not blocking link status
>> queries in case delayed query is on the flight.
>>
>> Fixes: 198a3c339a8f ("mlx5: handle link status interrupts")
>> CC: stable at dpdk.org
>>
>> Signed-off-by: Shahaf Shuler <shahafs at mellanox.com>

> Acked-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>

Applied to dpdk-next-net/master, thanks.



More information about the dev mailing list