From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756726Ab3J1Nrt (ORCPT ); Mon, 28 Oct 2013 09:47:49 -0400 Received: from s3.sipsolutions.net ([144.76.43.152]:34028 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756032Ab3J1Nrr (ORCPT ); Mon, 28 Oct 2013 09:47:47 -0400 Message-ID: <1382968061.17956.10.camel@jlt4.sipsolutions.net> Subject: Re: [PATCH 01/16] mac80211: fix TX device statistics for monitor interfaces From: Johannes Berg To: Pali =?ISO-8859-1?Q?Roh=E1r?= Cc: Luciano Coelho , "John W. Linville" , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, freemangordon@abv.bg, aaro.koskinen@iki.fi, pavel@ucw.cz, sre@ring0.de, joni.lapilainen@gmail.com, David Gnedt Date: Mon, 28 Oct 2013 14:47:41 +0100 In-Reply-To: <1382819655-30430-2-git-send-email-pali.rohar@gmail.com> (sfid-20131026_224024_753066_57DA03E7) References: <1382819655-30430-1-git-send-email-pali.rohar@gmail.com> <1382819655-30430-2-git-send-email-pali.rohar@gmail.com> (sfid-20131026_224024_753066_57DA03E7) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.5-2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2013-10-26 at 22:34 +0200, Pali Rohár wrote: > + dev->stats.tx_packets++; > + dev->stats.tx_bytes += skb->len; We can still easily drop the packet after this - we can't guarantee it'll go out but maybe we shouldn't do it here? johannes