From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: core: Remove redundant call to 'nf_reset' in 'dev_forward_skb' Date: Fri, 29 Mar 2013 15:11:20 -0400 (EDT) Message-ID: <20130329.151120.296920819953677221.davem@davemloft.net> References: <1364462006-5814-1-git-send-email-shmulik.ladkani@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: greearb@candelatech.com, netdev@vger.kernel.org, rgohita@gmail.com To: shmulik.ladkani@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:56120 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754480Ab3C2TLV (ORCPT ); Fri, 29 Mar 2013 15:11:21 -0400 In-Reply-To: <1364462006-5814-1-git-send-email-shmulik.ladkani@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Shmulik Ladkani Date: Thu, 28 Mar 2013 11:13:26 +0200 > 'nf_reset' is called just prior calling 'netif_rx'. > No need to call it twice. > > Reported-by: Igor Michailov > Signed-off-by: Shmulik Ladkani I do not see this happening in the: macvlan_start_xmit() --> macvlan_queue_xmit() code path. I'm not applying this patch. There seems to be no real agreement that the caller of dev_forward_skb() takes care of the nf_reset(). And wouldn't it be better to consolidate the nf_reset() calls into one place instead of several, increasing the audit burdon.