Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp890422imm; Fri, 27 Jul 2018 07:53:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeflfUetABNOmGpt6ddYFmPp52d5Mwv2SnqJws2Gv9RUf7DmoZUfxfnwnz7BjAds2xTuPjE X-Received: by 2002:a62:9541:: with SMTP id p62-v6mr6950157pfd.152.1532703182627; Fri, 27 Jul 2018 07:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532703182; cv=none; d=google.com; s=arc-20160816; b=wYlEvbJC/yTDwawng3YP2IzUUtoTePKX738XbXj3jfCJ1krw6EKBlia8F4JecV6DTK pczo92UQcCdszxKTmZHgapZ8klQx9pMcWYSIsmnyaKQNAhxs6QyRFapW6qaz+vx3Tssi 9CQYUqRJZfCgZ54j0m+5eNqo7g+0SnwEw5SvdvjGPKDivE0h9Axt3s6vNCge65scinoM l6zD+XoexTDXYKOAVDgRxsJ8xyqQDMrRLKtzG0LStXixSdDPsPEZ3TO7y44GsGE4O8tm A/NuHrYh8LQ2KJF3RANF9apZZV1VGosHnXU55Rqn9ajAzAkiQbbL9VbXhIb7S7EMgnNm fMdA== 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=UQJVtxRGPcQe0fQXpa8GiDd0JLtf9Zq6OF0cDueEkC0=; b=0G4+3DWuTEpf32QqrVBYHZ+9oBgY1ahD0FxSHaunfBR6enojztMaOSJoWvTzA5KXeX +wE2O+14oU5KZAuNzk2vDtH+2P0O9gwr8Ylpnxq2sHbDX81QpMbW1CqTGVKm9IEYZCRj cJ0S0r2o8XlLcZXGTbnv+HWKaEt1WKwSExKejw+cHWIT6PPeOznZi3wqOmjwFLoFjDSv 5F1gVaWba0PvacT01WQ1g/yochmED0kS5/kWFnCqlZsA7UZnGJsIkErAgSsDtmvu5dsi NDMarbEmsVmK7SHnTCFCN3jpfi38CTzAArmC6mUw18nPiPzMc0p/8EG0T8ihtnHznNG6 Bm5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=googlenew header.b=fXDhjx1J; 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 y67-v6si4135106pfa.47.2018.07.27.07.52.47; Fri, 27 Jul 2018 07:53:02 -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=fXDhjx1J; 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 S2388340AbeG0QOL (ORCPT + 99 others); Fri, 27 Jul 2018 12:14:11 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42653 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732167AbeG0QOL (ORCPT ); Fri, 27 Jul 2018 12:14:11 -0400 Received: by mail-ed1-f68.google.com with SMTP id r4-v6so4055312edp.9 for ; Fri, 27 Jul 2018 07:51:55 -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=UQJVtxRGPcQe0fQXpa8GiDd0JLtf9Zq6OF0cDueEkC0=; b=fXDhjx1JS3AFs+HKZUI9TZKdgxz9vdNVDtDi0qWkY1QW0t2EOhYdFGPMn8A43YTSHJ TgutD0+gUXfmKEt42AenHq6f0409Nlw1cmtqz6GCXRn5yZytntbl/QZ4M1LKYh/XqSwr nA66yh+BC0qIztErz1F0qYzfrlYQGvrKWOWI+g5aXOylqRAv8VVZHei98V/sIMcgc9RE T6ll6tSHZIOgsADkenmWooQCDmvhdxI+9OETCc3kRzsT4QegRWRKHcTUh35g84sH4GTD MUXTER5CkiSxTVM/PnRYNwvj8XY5Ht3flgeqzufFdR7tqAuy6j+VZrO6YCDjffs1Mjl/ fKFg== 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=UQJVtxRGPcQe0fQXpa8GiDd0JLtf9Zq6OF0cDueEkC0=; b=OauA2udtHlC8XkkfRw5Hotn5qLv+5uogK1TC/zvZ2Dd1wnu9p71uJBvxoXwyyPpQJg na+/kVJ9kcWD42MB/yU8HUAKTfOUIHPrimMsBzjvFE1KWOVGxSRaw73vxjPCuVufkqAM HHpJZlYDtrzIYuID9GLHKKQYXmVj5xFVyodOShj6iVT9p6+8XgUwFDVyvtAiWNrQLByp /YGmCjSRCK+6GJc+BC0WivkApTyue3j6Kwz3+yRuEZm/lXQpGcdHhDzbOVpF/l9T66Nt RkfFIv+yRAG8Tq207kWPpYbEMidlQabimtDuRS68WChJpinKeBRTjRTdIPCmc3OnaG9r xUQg== X-Gm-Message-State: AOUpUlGYjhFonnF6WKcNnr4D8TB1QGzAsrUagu38KET5JA+q7X5HT6m3 8bpXtGWe1vXIUn9KYp9xAencow== X-Received: by 2002:a50:a762:: with SMTP id h89-v6mr7717578edc.261.1532703114442; Fri, 27 Jul 2018 07:51:54 -0700 (PDT) Received: from dhcp.ire.aristanetworks.com ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id g8-v6sm2134260edh.87.2018.07.27.07.51.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 07:51:53 -0700 (PDT) Message-ID: <1532703111.2679.20.camel@arista.com> Subject: Re: [PATCH 00/18] xfrm: Add compat layer From: Dmitry Safonov To: Florian Westphal Cc: Steffen Klassert , linux-kernel@vger.kernel.org, "David S. Miller" , Herbert Xu , Dmitry Safonov <0x7f454c46@gmail.com>, netdev@vger.kernel.org, Andy Lutomirski , Ard Biesheuvel , "H. Peter Anvin" , Ingo Molnar , John Stultz , "Kirill A. Shutemov" , Oleg Nesterov , Stephen Boyd , Steven Rostedt , Thomas Gleixner , x86@kernel.org, linux-efi@vger.kernel.org, Andrew Morton , Greg Kroah-Hartman , Mauro Carvalho Chehab , Shuah Khan , linux-kselftest@vger.kernel.org, Eric Paris , Jozsef Kadlecsik , Pablo Neira Ayuso , Paul Moore , coreteam@netfilter.org, linux-audit@redhat.com, netfilter-devel@vger.kernel.org, Fan Du Date: Fri, 27 Jul 2018 15:51:51 +0100 In-Reply-To: <20180727141936.uze6ohordx7ue3no@breakpoint.cc> References: <20180726023144.31066-1-dima@arista.com> <20180726084959.pzjvflfjq6a76du6@breakpoint.cc> <20180727073747.h27dtojlnmc3k25v@gauss3.secunet.de> <1532700173.2679.18.camel@arista.com> <20180727141936.uze6ohordx7ue3no@breakpoint.cc> 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 Fri, 2018-07-27 at 16:19 +0200, Florian Westphal wrote: > Dmitry Safonov wrote: > > 1. It will double copy netlink messages, making it O(n) instead of > > O(1), where n - is number of bind()s.. Probably we don't care much. > > About those bind() patches, I don't understand why they are needed. > > Why can't you just add the compat skb to the native skb when doing > the multicast call? > > skb_shinfo(skb)->frag_list = compat_skb; > xfrm_nlmsg_multicast(net, skb, 0, ... Oh yeah, sorry, I think I misread the patch - will try to add compat skb in the multicast call. -- Thanks, Dmitry