From: Alexei Starovoitov Subject: Re: [PATCH net-next v6 1/3] Add a helper function to get socket cookie in eBPF Date: Mon, 20 Mar 2017 22:40:34 -0700 Message-ID: <20170321054032.GA64990@ast-mbp.thefacebook.com> References: <1490069337-14076-1-git-send-email-chenbofeng.kernel@gmail.com> <1490069337-14076-2-git-send-email-chenbofeng.kernel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, David Miller , Alexei Starovoitov , Daniel Borkmann , Lorenzo Colitti , Willem de Bruijn , Chenbo Feng To: Chenbo Feng Return-path: Received: from mail-pf0-f171.google.com ([209.85.192.171]:35564 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbdCUFkj (ORCPT ); Tue, 21 Mar 2017 01:40:39 -0400 Received: by mail-pf0-f171.google.com with SMTP id 20so27640839pfk.2 for ; Mon, 20 Mar 2017 22:40:38 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1490069337-14076-2-git-send-email-chenbofeng.kernel@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Mar 20, 2017 at 09:08:55PM -0700, Chenbo Feng wrote: > From: Chenbo Feng > > Retrieve the socket cookie generated by sock_gen_cookie() from a sk_buff > with a known socket. Generates a new cookie if one was not yet set.If > the socket pointer inside sk_buff is NULL, 0 is returned. The helper > function coud be useful in monitoring per socket networking traffic > statistics and provide a unique socket identifier per namespace. > > Signed-off-by: Chenbo Feng Acked-by: Alexei Starovoitov please carry over acks into respins on the patch if patch didn't change. Thanks