Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4222321imm; Mon, 30 Jul 2018 10:40:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpczwK0uwkaQxMY6Ih/aci75nWKb8SmEu039N5FauIiR5TQPv+vAiZ/y3Tp3LtEzfx4TKstf X-Received: by 2002:a17:902:a613:: with SMTP id u19-v6mr17069658plq.234.1532972436886; Mon, 30 Jul 2018 10:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532972436; cv=none; d=google.com; s=arc-20160816; b=BfVGCSbmjwaM2YsaxfEethBUASD/oD3m7jUS5Id+XjIEdp7OGNE/hRMED79ZtunWjM dcO5EoR6E2Uha9j6yIjdznwQcVkc/rMcSHeohwfLsjFnXQjS4zF6eXB+sxiSZ/eqM9tK NStXUthRuVGIMBvbjt+P1k7J2pHvt544vB5okGJt0w313EhVgF5PLenWLnJ/SBV4GmGG DN5laP7U/2dZrscLLN3H2itsrO9aDEzTVwtnWRKgWb8x/2yHRBHxjHrYWMyBRfPjBh0g qZlADi9zZAmcD3cfFzVuC/X+Cz9q+ugyZBmJiqNH8lCSVmRjI/X64TuWiYxGnUz4ipmw EQUA== 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:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=sxdKP5KpAw0ISaQZY4SIiqIk+juaM7rLN36l3EnF8w8=; b=BDctXpkE+pu2jqZRF7ktnwLQeMiNFPZqITVW53iOQtvPs5vEgArtPE70+UVmD9rITq +E6roueZAc7v4eP9dZ6ttO99PdZe7ngl5f3srLIYU3EjwQD5seRwRZtt7CXacPoarCpP h0wYiqzNZJR5Bjg3pMs7j/L5fbvAYS7IXSU7KKIf2R4tvfscoHj33KVU0aP+MLXq0ICY tIijMr62SItW6JmBVXIeaT+WzIFosvePGl2t9GpKsGhGkS0AORnTvUB/900oiukGs4CK 1VqxLonvNy6dNT5yhy1HvfngFCBKR5KeO6n1NQz8HyjzUmlJGMOS9ETD441bmiZNTzL9 m4Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=googlenew header.b=WutrVYTn; 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=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18-v6si11479290pgg.693.2018.07.30.10.40.22; Mon, 30 Jul 2018 10:40:36 -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=@arista.com header.s=googlenew header.b=WutrVYTn; 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=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731728AbeG3TP1 (ORCPT + 99 others); Mon, 30 Jul 2018 15:15:27 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:46923 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731606AbeG3TP1 (ORCPT ); Mon, 30 Jul 2018 15:15:27 -0400 Received: by mail-ed1-f65.google.com with SMTP id o8-v6so4463596edt.13 for ; Mon, 30 Jul 2018 10:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=sxdKP5KpAw0ISaQZY4SIiqIk+juaM7rLN36l3EnF8w8=; b=WutrVYTnVaumcuxyHztw7TKBL5ru5WdVS7OiwpMmnU9/6AruOnuuPEpJKDqv+3S2c0 xT0ANfLGWkp6any8pHQ+HggYaL0o4ykvn2zhUybXLHDj2XHzQOVAf+4Pac71wGzxxPO5 6Cm3b7S65kVWHeqC8WRVvDKx5cBqb8s6zI36cdD17jxZX/WppZXi0B1+VAxLC5t40oSc noZwTziNQ7XeE+9cWaliSKSnEMqHXegGU/NjkdXshdAd/0IE6kUewapbMq7QleLdUDGZ o1uj+sfayfzvSN9OWsJxxt4/0aZKMT320xcgKCSPjuHmoFw4aSCyHtptkR8yg+kpsRZp T2ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=sxdKP5KpAw0ISaQZY4SIiqIk+juaM7rLN36l3EnF8w8=; b=GSJowjx3qOsfWa9eTBpVzXmFhnBw1Ju3gvKhc50NtKEfDzOL7bFXIJFPQUdWG5M7JD YNw4SC8dORmOOk68UNXSCBz0Av5diKZsYPVH3XRxEyzLULHlgHOrw0S+jwjWzSr0go5o keBCE7fRKQHlUCBd2ukTXDg9pFtMFa29yVLzlaFuCUA7eVjCmoKvxrZBkXsNg3iYmdpV LkB/Ym4vts61c/8cxy3ijO2V0SITw4zvuMP4sZ4E/ZbeFkR8MrjpTYGkfkCWW6ZtQLxj cdCQq+PB8cEpFKPmIMW6V6GMW1aRIQi7K7XH7OV14ahrzKWrhXxtGzbo1m/8aMf4tkC+ /JjQ== X-Gm-Message-State: AOUpUlGZyFgXUsG7XAOZ4v46Iq0OoS/BqQ9IIVfhkMfbiuiVJTwtCfQT oyuTZOVQDxdEm4C7BGVaH7InOQ== X-Received: by 2002:aa7:c70f:: with SMTP id i15-v6mr9159916edq.231.1532972362754; Mon, 30 Jul 2018 10:39:22 -0700 (PDT) Received: from dhcp.ire.aristanetworks.com ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id f11-v6sm6462558ede.76.2018.07.30.10.39.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jul 2018 10:39:21 -0700 (PDT) Message-ID: <1532972360.2679.32.camel@arista.com> Subject: Re: [PATCH 00/18] xfrm: Add compat layer From: Dmitry Safonov To: David Miller Cc: nharold@google.com, fw@strlen.de, steffen.klassert@secunet.com, linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, 0x7f454c46@gmail.com, netdev@vger.kernel.org, luto@kernel.org, ard.biesheuvel@linaro.org, hpa@zytor.com, mingo@redhat.com, john.stultz@linaro.org, kirill.shutemov@linux.intel.com, oleg@redhat.com, sboyd@kernel.org, rostedt@goodmis.org, tglx@linutronix.de, x86@kernel.org, linux-efi@vger.kernel.org, akpm@linux-foundation.org, gregkh@linuxfoundation.org, mchehab+samsung@kernel.org, shuah@kernel.org, linux-kselftest@vger.kernel.org, eparis@redhat.com, kadlec@blackhole.kfki.hu, pablo@netfilter.org, paul@paul-moore.com, coreteam@netfilter.org, linux-audit@redhat.com, netfilter-devel@vger.kernel.org, fan.du@intel.com Date: Mon, 30 Jul 2018 18:39:20 +0100 In-Reply-To: <20180728.141812.1026007723536955024.davem@davemloft.net> References: <1532703111.2679.20.camel@arista.com> <1532795215.2679.27.camel@arista.com> <20180728.141812.1026007723536955024.davem@davemloft.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-07-28 at 14:18 -0700, David Miller wrote: > From: Dmitry Safonov > Date: Sat, 28 Jul 2018 17:26:55 +0100 > > > Well, I think, I'll rework my patches set according to critics and > > separate compat xfrm layer. I've already a selftest to check that > 32/64 > > bit xfrm works - so the most time-taking part is done. > > The way you've done the compat structures using __packed is only > going > to work on x86, just FYI. Thanks for pointing, so I'll probably cover it under something like HAS_COMPAT_XFRM. (if there isn't any better idea). > The "32-bit alignment for 64-bit objects" thing x86 has is very much > not universal amongst ABIs having 32-bit and 64-bit variants. -- Thanks, Dmitry