[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130204.130741.1626636131644599032.davem@davemloft.net>
Date: Mon, 04 Feb 2013 13:07:41 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: bjorn@...k.no
Cc: netdev@...r.kernel.org, linux-usb@...r.kernel.org,
oliver@...kum.org, alexey.orishko@...il.com
Subject: Re: [PATCH net] net: usbnet: fix tx_dropped statistics
From: Bjørn Mork <bjorn@...k.no>
Date: Thu, 31 Jan 2013 19:36:05 +0100
> It is normal for minidrivers accumulating frames to return NULL
> from their tx_fixup function. We do not want to count this as a
> drop, or log any debug messages. A different exit path is
> therefore chosen for such drivers, skipping the debug message
> and the tx_dropped increment.
>
> The test for accumulating drivers was however completely bogus,
> making the exit path selection depend on whether the user had
> enabled tx_err logging or not. This would arbitrarily mess up
> accounting for both accumulating and non-accumulating minidrivers,
> and would result in unwanted debug messages for the accumulating
> drivers.
>
> Fix by testing for FLAG_MULTI_PACKET instead, which probably was
> the intention from the beginning. This usage match the documented
> behaviour of this flag:
>
> Indicates to usbnet, that USB driver accumulates multiple IP packets.
> Affects statistic (counters) and short packet handling.
>
> Signed-off-by: Bjørn Mork <bjorn@...k.no>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists