Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp858202imm; Fri, 27 Jul 2018 07:21:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcWHOoXSWWSbM2OQh8nDNn+lJJm15Ee3CCfPV4pUXbXvnBptzfSnjpXh4yFUZMhv3RMHYbu X-Received: by 2002:a17:902:d692:: with SMTP id v18-v6mr6307944ply.59.1532701290954; Fri, 27 Jul 2018 07:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532701290; cv=none; d=google.com; s=arc-20160816; b=X1DTH/FBPiFPRkUhHWAYxivyRegHW2uOyXL8H++oSPKCV9MMwuihGIaP1520IaPNFK MMnufi8u6OUHuRJ5JJA/YhiZh0s/8+lLlO8PRdV4JDunIgwDvKZxDCxsgWRjycuJ+sK6 ZjpmOD1Tox916GSNEVqrtiXSFU0ORIfArBTodnpRtQKrcDD4hQ4kWjD8lvOuk8zD28AC dk2YVcHmVC02/+o1GtrkktbNq1m1J1mY0B3DhJ9bvmk9g7pOm59Hq55Yo9OOSYD3cJDT qqGb1Gge5xUkO0wDkPQEvGx8li8ME6aRhKd169oJpuFc23u7p1MdJ657fHZwEbmZ6HvN EWUw== 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:arc-authentication-results; bh=ckLiDs5zvteGDzcljmwm9Lpu5LUvYqA8yFf6lG5b+Iw=; b=qRjX+b7e7MQdw4Z8sQrRtdi43t/Lqn1m5P53Qtym7qo1rRs2YpTIwmkI4kDndsuj2J 5JFrOYLqtvYUfRjTAD3IK0Hw4RmSDbLosjWvCeOp1Thg+bhRoG6Q1ZrNu98/RoAgMSoc GYCOB0qLi+AvagXh8aLwzOyEp9Td9PhzMgO/0aWCJBqQLZ+bjPgOVcxP6kNDM8nhjQSl qTBtvcPOJJ5UP39+CzkRxf8o1o05spWNQRr2+/nbd4PCczOsuDZUPbE6NvLGVkGjHsuL 0CVTxMw3kGBPbqD/ZzZdPCuHDgajUrL+Adq8a37HDOVCHMBGf4Qlb/o6bVTYn6ypLBso ZRvQ== 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 p26-v6si3566419pgv.344.2018.07.27.07.21.13; Fri, 27 Jul 2018 07:21:30 -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 S2387912AbeG0PmX (ORCPT + 99 others); Fri, 27 Jul 2018 11:42:23 -0400 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:57908 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730376AbeG0PmW (ORCPT ); Fri, 27 Jul 2018 11:42:22 -0400 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1fj3ai-0003oY-8v; Fri, 27 Jul 2018 16:19:36 +0200 Date: Fri, 27 Jul 2018 16:19:36 +0200 From: Florian Westphal To: Dmitry Safonov Cc: Steffen Klassert , Florian Westphal , 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 Subject: Re: [PATCH 00/18] xfrm: Add compat layer Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1532700173.2679.18.camel@arista.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, ...