From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH net 0/4] net: add rx_unhandled stat counter Date: Thu, 28 Jan 2016 06:44:25 -0800 Message-ID: <1453992265.7627.37.camel@edumazet-glaptop2.roam.corp.google.com> References: <1453489882-57948-1-git-send-email-jarod@redhat.com> <1453926098-40181-1-git-send-email-jarod@redhat.com> <1453928987.20722.29.camel@edumazet-glaptop2.roam.corp.google.com> <20160128060215.GB59058@redhat.com> <20160128061808.GD59058@redhat.com> <1453986002.7627.20.camel@edumazet-glaptop2.roam.corp.google.com> <20160128143806.GE59058@redhat.com> <1453992162.7627.35.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jiri Pirko , Daniel Borkmann , Tom Herbert , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , netdev@vger.kernel.org To: Jarod Wilson Return-path: In-Reply-To: <1453992162.7627.35.camel@edumazet-glaptop2.roam.corp.google.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, 2016-01-28 at 06:42 -0800, Eric Dumazet wrote: > > Sure, you also can set stats64->rx_unhandled to 0 here, just to be 100% > safe. And not add the memset(stats64, 0, sizeof(*stats64)), since we have the guarantee to properly init whole stats64 structure.