Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp931341img; Mon, 18 Mar 2019 18:30:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz9Or+TjmRp3QSQKyf6cgTXMTCAm6smmatm6JAgg5nX+dU9/LJcjZeCnYE0TJLSdFKy9fx X-Received: by 2002:a17:902:20e5:: with SMTP id v34mr23050234plg.319.1552959013294; Mon, 18 Mar 2019 18:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552959013; cv=none; d=google.com; s=arc-20160816; b=Yg/MrFh/3rgd5Q7QQlokQjqPPvrgLyU0a7cWX90BtkTWis7x7tRTCaI7FjJUBPEcb0 DkN9YgYcU0MaculUbMDriBnGfCltbVC1DnQ3KPSi7UbUlakrQewht1LJ6cRySLI/ezpF q37qSbkoP0rxbmmVYFHlm6mW24xxLHuYsHspfm2g8tTpdOsJd5ZOPNYUUVYJnbcy0q3Z chvYxAECqkbK0UnAS3J5hUHl52T95DiAbQnkQeQm5IL1km6pbYGb6bGTxpA14iJX+j8M PYFbOhnpuTTa93oBPgeQFH1OY/uFr40j/7AlKsm/ZfV7snS+Il6wLsOI9uYGMFEmTcmV V2jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hj6/XNA3cZRTtNm+qzA60GjinHeuxf4jZE292Kw1gY4=; b=YEYpiCXK1WhPj3+oSu4Y3+ZW8g7mDM3QVBYU18r7cvHMF5g0ABTDE2jZreQMfI9uS7 nZObRJe21oHyCbsxuSdTYH73IWJFASeVKwU/kN+RRZjFUWpZeA3Q8odZ8TQCNLiPBRXL Acdq3pSSz18GNqKIsq3qS4hQAv5Ov4XkHJOQCt3jf++kz1LaH4ao7CHba4WL4FAfLRBB Kf24HKdT4Z63MNW9AsONc3jI1/4xl49Png/vD3epcLx8ABTM0caaGPosw7CS4zwZsdgo HEcdUZzFBGiNMER261itC3iqgjYBbDvcq/4/6xrFt5BeLt1ZPa4tRv3UlyhSyhwwHInf cKvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OYmx5PV6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si9897341pgp.589.2019.03.18.18.29.57; Mon, 18 Mar 2019 18:30:13 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OYmx5PV6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727089AbfCSB3V (ORCPT + 99 others); Mon, 18 Mar 2019 21:29:21 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42092 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfCSB3U (ORCPT ); Mon, 18 Mar 2019 21:29:20 -0400 Received: by mail-pg1-f196.google.com with SMTP id b2so12628624pgl.9; Mon, 18 Mar 2019 18:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hj6/XNA3cZRTtNm+qzA60GjinHeuxf4jZE292Kw1gY4=; b=OYmx5PV6qtsM8S44snMqF6rh8RAp1BQw2QDMLpVjCdrYKV+uSRNrIiKi457Cg3Thh/ 5DoQcAKWWuptK0/jDMyB/Lku7kw3jg2pMGI/uNAf8hEutYcFKoDh8oaiez7cx4Sk7G3c fn+q//fBrrPzIt3xn8Ha8rHVhi+6p/mXZBm3bANDdmQaqbP91v0gKf+7NxLzhQTjTYQU Lr5VHmKSOyy7potb0x5eMYq1/p4Iy779CPietyQ1nKvtUEEMB9IAEpeKxv/p45One9Ja EiXT2n/rMMWYt2GBOgHAw4oOFWONqnnGRq7TeNlLzFjnyvf8H0sg5PbxyRwL2YDidVPS 40Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hj6/XNA3cZRTtNm+qzA60GjinHeuxf4jZE292Kw1gY4=; b=BmUCi0UDtnKALrLTIDQbRxOlS0OYyrbG+zL0e2EQUuNRVSWJaExGuIv00va9BPTHT0 PVbZJPYWcv36CJpz21UZiuf+NIUEQOgaLv8tlh0Id7quBmyGRodZZUCfcAqkUDKW1HN1 IRsixwMMZxRSAvO1fIxYqErQq0xveYYzbXZBe5h78SHbe7LcOHuK0+X05w75jeg0Xkhf Bdik1Legfg+3nVRH013tWpWQ+t78JZUHfeik5lipQJa84DxaKk4sd3cTDMtT2x0U5JQW E8LRVn60J0GDp9jd69ZZcfC6AIkCGRrMZoVsfjGtBLEqsSDKxrWAN3uR6LHyZ+iBxkQc sogA== X-Gm-Message-State: APjAAAUiYtEKT/TwJzv65iDBcPUUbV8p/PnQT4ou6sq3DT3xA4LRps/t U0BePOirCeAHcAnk8Wl8boRupEFl X-Received: by 2002:a17:902:b684:: with SMTP id c4mr23059656pls.294.1552958959389; Mon, 18 Mar 2019 18:29:19 -0700 (PDT) Received: from localhost ([175.223.38.238]) by smtp.gmail.com with ESMTPSA id m3sm12965517pgp.85.2019.03.18.18.29.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Mar 2019 18:29:18 -0700 (PDT) Date: Tue, 19 Mar 2019 10:29:14 +0900 From: Sergey Senozhatsky To: Stanislav Fomichev Cc: Sergey Senozhatsky , Sergey Senozhatsky , Eric Dumazet , netdev , LKML Subject: Re: [PATCH] tcp: don't use __constant_cpu_to_be32 Message-ID: <20190319012914.GA9313@jagdpanzerIV> References: <20190314061514.19586-1-sergey.senozhatsky@gmail.com> <20190315012012.GA748@jagdpanzerIV> <20190315172428.GB5481@mini-arch.hsd1.ca.comcast.net> <20190316051902.GA27630@tigerII.localdomain> <20190316142646.GA10815@tigerII.localdomain> <20190318163208.GC7431@mini-arch.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190318163208.GC7431@mini-arch.hsd1.ca.comcast.net> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (03/18/19 09:32), Stanislav Fomichev wrote: [..] > > -#define bpf_htons(x) \ > > - (__builtin_constant_p(x) ? \ > > - __bpf_constant_htons(x) : __bpf_htons(x)) > > -#define bpf_ntohs(x) \ > > - (__builtin_constant_p(x) ? \ > > - __bpf_constant_ntohs(x) : __bpf_ntohs(x)) > > -#define bpf_htonl(x) \ > > - (__builtin_constant_p(x) ? \ > > - __bpf_constant_htonl(x) : __bpf_htonl(x)) > > -#define bpf_ntohl(x) \ > > - (__builtin_constant_p(x) ? \ > > - __bpf_constant_ntohl(x) : __bpf_ntohl(x)) > > +#define bpf_htons(x) __bpf_htons((x)) > > +#define bpf_ntohs(x) __bpf_ntohs((x)) > > +#define bpf_htonl(x) __bpf_htonl((x)) > > +#define bpf_ntohl(x) __bpf_ntohl((x)) > At this point we can probably drop __bpf_xxx as well? > Care to resend with proper description when bpf-next opens? OK. -ss