Received: by 10.192.165.148 with SMTP id m20csp3588999imm; Mon, 23 Apr 2018 09:00:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx49zP9JoDE2j4va0XpaSLSM6/QC2DMA/fY8UU8yhGEf1y5Vcx3Hn3CgoblEQQTSTcByMSgBQ X-Received: by 10.99.112.29 with SMTP id l29mr17131378pgc.299.1524499228156; Mon, 23 Apr 2018 09:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524499228; cv=none; d=google.com; s=arc-20160816; b=Vo/V76jG+1mvNY5y87UeiFiMqjW5Pv7x9JiIIuahDaLwRS4pweYeIymxm12BBgaIGc fMOwo0yNI+KJ9+zk9g2xYegLiMovwpbLGS8i6S3mkaXoToDnBntP15xRXXD22aMXOAWK eiQYB9boUWu+KcYA7WK7l7cMysoF21WLYVzz/4TO6uauUIp49ixTKwcereIesYOaP/hm d4GsvK6+u6RNjFzxQ1XOYpVe4o/73gRPi6AdjieQ5AiDvEAeREyGYp1Biaz2zcRstppT xFYXFz3lSLN4i3G4QuOxY7lJ7oDvu9csLqjdvuzXKLLYruGtZV4cYnkSmKizdXHun8J8 4MDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=ZyxLnfwFKRBKwqf/b4VpyIL+6wnUbelUwWzIRBpMVzQ=; b=JT596UO8jrea2nPVIz5ubJZ2zzMcdj9KLDNl8DbSZM6oCTss2M02go0lFhYDWNrPKC eH6eXdtjlNbmZL8SEB4acEQ15pGlUqON0scGmC1SJ28JUSklcxOcFvsSZiRbwVTtR0T0 8t1xGVa8411BBJ04eeEgyz6jHXlEcLu5F5/GVwqKWYKTdUckoY02KXLbjg5QCFloOXZY EZDLvVYgsrISZTSO/D+sY+yrEtE41aCPU5OGBqf6GjV7vqhQx7R3+eoCR6VgIGauiTfl MvYThusuzA8GTXNiw4cenPfexnE5clpuW2hch7Eu3Rkrtm0kHxchm1I89WRjd9Gvugxi q9yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si10038238pgn.420.2018.04.23.09.00.13; Mon, 23 Apr 2018 09:00:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932225AbeDWP60 (ORCPT + 99 others); Mon, 23 Apr 2018 11:58:26 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:50214 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755878AbeDWP6X (ORCPT ); Mon, 23 Apr 2018 11:58:23 -0400 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id A6D7D10433B92; Mon, 23 Apr 2018 08:58:22 -0700 (PDT) Date: Mon, 23 Apr 2018 11:58:21 -0400 (EDT) Message-Id: <20180423.115821.640630949143585629.davem@davemloft.net> To: laoar.shao@gmail.com Cc: eric.dumazet@gmail.com, alexei.starovoitov@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: init sk_cookie for inet socket From: David Miller In-Reply-To: <1524405004-10960-1-git-send-email-laoar.shao@gmail.com> References: <1524405004-10960-1-git-send-email-laoar.shao@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 23 Apr 2018 08:58:23 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yafang Shao Date: Sun, 22 Apr 2018 21:50:04 +0800 > With sk_cookie we can identify a socket, that is very helpful for > traceing and statistic, i.e. tcp tracepiont and ebpf. > So we'd better init it by default for inet socket. > When using it, we just need call atomic64_read(&sk->sk_cookie). > > Signed-off-by: Yafang Shao Applied, thank you.