lkml.org 
[lkml]   [2016]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 0/2] Net driver bugs fix
From
From: Elad Kanfi <eladkan@mellanox.com>
Date: Mon, 9 May 2016 20:13:18 +0300

> Summary:
> 1. Bug description: TX done interrupts that arrives while interrupts
> are masked, during NAPI poll, will not trigger an interrupt handling.
> Since TX interrupt is of level edge we will lose the TX done interrupt.
> As a result all pending tx frames will get no service.
>
> Solution: Check if there is a pending tx request after unmasking the
> interrupt and if answer is yes then re-add ourselves to
> the NAPI poll list.
>
> 2. Bug description: CPU-A before sending a frame will set a variable
> to true. CPU-B that executes the tx done interrupt service routine
> might read a non valid value of that variable.
>
> Solution: Use the socket buffer pointer instead of the variable,
> and add a write memory barrier at the tx sending function after
> the pointer is set.

Series applied, thanks.

\
 
 \ /
  Last update: 2016-05-10 21:01    [W:0.507 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site