From: Andreas Oetken <ennoerlan...@googlemail.com> Date: Tue, 14 Apr 2015 22:25:26 +0200
> From: Andreas Oetken <andr...@oetken.name> > > Fix bug which occurs when more than <limit> packets are available during > napi-poll, > leading to "delays" and retransmissions on the network. > > Check for (count < limit) before checking the get_rx_status in > tse_rx-function. get_rx_status is reading from the response-fifo. > If there is currently a response in the fifo, reading the last byte of the > response pops the value from the fifo. > If the limit is check as second condition and the limit is reached the fifo > is popped but the packet is not processed. > > Signed-off-by: Andreas Oetken <ennoerlan...@gmail.com> Your commit message lines are very long, format them to 80 columns or less. > - while (((rxstatus = priv->dmaops->get_rx_status(priv)) != 0) && > - (count < limit)) { > + /* Check for limit first. get_rx_status is reading the from the > + * response-fifo. If there is a currently a response in the fifo, > + * reading the last byte of the response pops the value from the fifo. > + */ > + while ((count < limit) && > + ((rxstatus = priv->dmaops->get_rx_status(priv)) != 0)) { You're corrupted the indentation. The second line of this while statement should start precisely at the first column after the openning parenthesis of the first line. You must use the appropriate number of TAB then SPACE characters necessary to achieve this. If you are purely using TAB characters, as you have done here, for indentation then it is very likely that you have indented things incorrectly. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html