From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next 1/4] netdevice: add SW statistics ndo Date: Mon, 16 May 2016 11:00:39 +0200 Message-ID: <20160516090039.GA2038@nanopsycho.orion> References: <1463053730-14991-1-git-send-email-jiri@resnulli.us> <1463053730-14991-2-git-send-email-jiri@resnulli.us> <5734F130.3050303@cumulusnetworks.com> <20160513060348.GA2060@nanopsycho.orion> <57362154.8040500@cumulusnetworks.com> <20160514124917.GA1957@nanopsycho.orion> <5737489D.4090800@cumulusnetworks.com> <20160514184629.GA2176@nanopsycho.orion> <20160515154411.GD9021@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Roopa Prabhu , netdev@vger.kernel.org, davem@davemloft.net, nogahf@mellanox.com, idosch@mellanox.com, eladr@mellanox.com, yotamg@mellanox.com, ogerlitz@mellanox.com, nikolay@cumulusnetworks.com, linville@tuxdriver.com, tgraf@suug.ch, gospo@cumulusnetworks.com, sfeldma@gmail.com, sd@queasysnail.net, eranbe@mellanox.com, ast@plumgrid.com, edumazet@google.com, hannes@stressinduktion.org To: Andrew Lunn Return-path: Received: from mail-wm0-f67.google.com ([74.125.82.67]:36340 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753523AbcEPJAn (ORCPT ); Mon, 16 May 2016 05:00:43 -0400 Received: by mail-wm0-f67.google.com with SMTP id w143so16472607wmw.3 for ; Mon, 16 May 2016 02:00:42 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20160515154411.GD9021@lunn.ch> Sender: netdev-owner@vger.kernel.org List-ID: Sun, May 15, 2016 at 05:44:11PM CEST, andrew@lunn.ch wrote: >> I think we don/t understand each other. HW stats always include SW >> stats. Because whatever goes in or out goes through HW. > >Hi Jiri > >Bit of a corner case, but what about multicast and broadcast? Can you >do the replication in the switch, so that only a single copy is sent >from the host to the switch? If kernel is originator of such packets, it always sends them through specific netdevs.