Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3801229imc; Thu, 14 Mar 2019 05:44:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWe6eAc4HCdHwWrMcLL2jX11MUrYBIXvvLpdOoENwiGvI9BIgqRKlQ6sLHrhIhh0W911zn X-Received: by 2002:a17:902:5992:: with SMTP id p18mr50953021pli.231.1552567477038; Thu, 14 Mar 2019 05:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552567477; cv=none; d=google.com; s=arc-20160816; b=pyau4jqv/tXKqcUvfE31xL/W15vOTwGiv7hylI2iTfAJmGsX9vZgHKxFBXUvq8zmQ1 2TY/ICX1+eSrOh8w4u3kNSsGgGx8j3YkjNqoKavsx2f1Feni+cUnjIzK1eFOcrrnZFhJ 9sxkcN41QAuHYtJOlgAIedPAe6ii6ypNbhpc9ULjml3uev2WSnV856y8lxMjtNgiqW58 3URKTMDRLgaTePH6xL4tTvKC3o+NWggQyQ2aolI5BR9zvEvYGmWhQPjK2dFADknDChRu TtdeW2Nc0s8IwZjc8f7cnx/ZBwF7Uq1GJsr+ftX53vP2UhbbIG9WFxVSVcjs/20/QeDe 3BrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bnqsGPbVGYiomLioUW40e7z+mOF1pXFzyj/t4m1GGgM=; b=B2oYpLNyBp/rKCQOohGJ4AvE3rkqkHzgAZwdQTX3i8Y+YZSyKjRdqSFY25PLZL6ESy 9r8k4keSd93gmKr4C1je4JW4F3eTkjYqR+pGNlGDaSW+DwPHq93obSkHafgAdg6+TRY+ zFzpFAC04yvG/hHp8C6NBPVOn5ddViU8v+WVIqeOadihMk4tpY8v01DY+MxYKPdbTK5q g9Twv/G1jzM2iFKbBzqHA3qRv4/hgPUNZo23jAwOIAb1e/0aqobt40RxOyS4mDsfi67G am75v1yGR8E384BMKBifZR6TeYRMZis5lEtTBEq/ci21h2Zry3r4fm4i5Qf5lrW+JaYZ xEYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WSdZeSA7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si13082906plk.108.2019.03.14.05.44.22; Thu, 14 Mar 2019 05:44:37 -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=@google.com header.s=20161025 header.b=WSdZeSA7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbfCNMmS (ORCPT + 99 others); Thu, 14 Mar 2019 08:42:18 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:37197 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727184AbfCNMmQ (ORCPT ); Thu, 14 Mar 2019 08:42:16 -0400 Received: by mail-yw1-f65.google.com with SMTP id w66so4258417ywd.4 for ; Thu, 14 Mar 2019 05:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bnqsGPbVGYiomLioUW40e7z+mOF1pXFzyj/t4m1GGgM=; b=WSdZeSA7u1y03lamOy133IVEAyD1s6lVk6NxGzg+DDbC74KT1gn2zP2XydatIHFJoi cAtgWKnRGztqSiwoapmxaKzq/ehuT0nN1IlXQqhC8J0PaXjTkct0QTAE6z2AqPZ9HOyZ mn12tJSbpoyGdeGK6rjKaKInq4CETkXLHg3AMYIPZx/FY/ntRATDuljNEUso5mRBrbsO mghhTnH85kFnBxmPeli83kfeelznMEuf8I5998y753oRM8ARRJDs/1pOYB4VvtCGyhEY w08kO5BU5kniSwDRLSXPhrzkIP0V8f6+0mnpmHfMx45LTylubpaRHyTmV1DxunXHNYEs T/EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bnqsGPbVGYiomLioUW40e7z+mOF1pXFzyj/t4m1GGgM=; b=Q3KKMivpWFDLobSP5cplQ1lQog6qkURK5zmGaMAysjivFKsZLx8m1DMkuypqVlL8lB cABfHZWkyOp4ohwKTzfZWZM7fw+MAEWa5IrSdOqkGf36z3AVvp+jfLkP4hBl5cozY6C9 k3TXMhXQ5RIEaGw0gAnFlmSmE/qXHhAwNjom/aErTQxEy6EKmCwj9joD0UovuZeOX+rn xzJ2ke3TOm2eODNZdnBAK4k6h7MU9k8vx2VnjjQE5XivDycBzTzzFUJRH+fmR3ZV5+PC 7yeMeGvfvM/TlnUjH68gS/V1BIlyU5JGDeQKEgWTyKgfeTBuvJ+gS0PQb0koDqv8+sm8 gmoA== X-Gm-Message-State: APjAAAUWJZWJziAaxQAJdAYne03pTV9PKIJQptXyeYY+pBqtl0MT/Xin xvUPEiZDYxKANV6TYF8rFLpoSQ4vNScUjtxyKYqYcA== X-Received: by 2002:a81:550f:: with SMTP id j15mr2202894ywb.83.1552567334682; Thu, 14 Mar 2019 05:42:14 -0700 (PDT) MIME-Version: 1.0 References: <20190314061514.19586-1-sergey.senozhatsky@gmail.com> In-Reply-To: <20190314061514.19586-1-sergey.senozhatsky@gmail.com> From: Eric Dumazet Date: Thu, 14 Mar 2019 05:42:02 -0700 Message-ID: Subject: Re: [PATCH] tcp: don't use __constant_cpu_to_be32 To: Sergey Senozhatsky Cc: netdev , LKML , Sergey Senozhatsky Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 13, 2019 at 11:15 PM Sergey Senozhatsky wrote: > > A trivial patch. Not so trivial... > > > cpu_to_be32() is capable enough to detect __builtin_constant_p() > and to use an appropriate compile time ___constant_swahb32() > function. > > So we can use cpu_to_be32() instead of __constant_cpu_to_be32(). I dunno, this is uapi, this might break user space for some funky compiler ? I do not even know if cpu_to_be32() _is_ uapi.