Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp448001pxa; Wed, 19 Aug 2020 06:07:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJhFb5/z6H+hn2DdvKKK2PbATDTm+0rvaaJcoQrM4zhtn3eEcopmdKoiGXKisbOQbEfWyI X-Received: by 2002:aa7:da0e:: with SMTP id r14mr24950611eds.236.1597842422487; Wed, 19 Aug 2020 06:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597842422; cv=none; d=google.com; s=arc-20160816; b=qPnAZ8Qpn5bdpTTgspR9b370QAiJe924BghyjGpzpHAtMTnXZ2I+P3GMoP1v/o/4VZ 8ZQ0/TMOJ3aFzZPpgbomLiP0/VXT8FPcevRlCXujCvvWRf6ugAag2HsXoZ2jAa8czAzj UP6tuRtlKtu2FyLJbKMJNpduF0YIYjLwbKXczzmqZjy5yu5kE7vlpyjxysfV6g/3wU6o SdyWX1fuyxEMkuo/YOHhmmFqAcBt6RVLT+R+NzYsEyMT85r7xY7ELDgTQzb6Nt755KUE S148BjfZj3uqLUObgb22JCA6wGAHGt2tRbfD0fhJEW8CA0nHqiUGh1zvZp8AuljpcdFj sXcQ== 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=NDGVB4uc/9L8D6EYysA1otupkiXzJkfvAe8wQHNLxGA=; b=ckhW7y9TfgZCHZhOgFenVHqsG9qbeBJRzrPBKlAWnt1yRkKeqBBqNob6rhUEH2vVMn Ry83n++CdR/TlSZnUUuyjcj0dDZgQD7IjfdgsTDuE15EZVv8hLr1zRcyLfm3yCqB79HO gc5m4pHPDBPcfr91QInVSQRXt5kLwZFo1r9m2B/HEyJj7pP1PLQKHlrW9MocgUZlLS+W cNlIV1oD+zekisgv88bji9lZ9FqcV8YqxOZcOmuaC+bGpNcEIjGuYA9nUAoxcThN5mcn i7e+4qdFXj4hZNvPFZz6OTva/8RybfCZxE3HbM9cWCMM3Tpmm5BnGsm/Av/+a6f3o7xo ZnUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ard4s932; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l7si14819214eds.64.2020.08.19.06.06.30; Wed, 19 Aug 2020 06:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ard4s932; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728640AbgHSNFU (ORCPT + 99 others); Wed, 19 Aug 2020 09:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728585AbgHSNEn (ORCPT ); Wed, 19 Aug 2020 09:04:43 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 658A7C061383; Wed, 19 Aug 2020 06:04:42 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id 140so12011976lfi.5; Wed, 19 Aug 2020 06:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NDGVB4uc/9L8D6EYysA1otupkiXzJkfvAe8wQHNLxGA=; b=Ard4s932bJYSYryZTKI5z99QM0+nDxvZnETpFePakQOdmcZu0nh6+SK4cSRXAWUpvy DT5JwCtY1KAS+tkXlG6XVjhS2mg/4nCr2Qjud2UWkaVscXSfSV/6edu5jbYGw0CTNiZu YU9/NpNTp42WF76ysCVoai4EnTX8RzIds09S22UUybPEbST6AChWpEjqb6t5yeWy3bIa Kq5W7/lRoV2XtnFAWx+owWqLiAS/CuuXcwUSTcCPgIxwvKJ9GjeJ0Sg6UZr4Qe5aBK2x 4RTA0BTT1VTjDZqE2jtc5XJiaGqmzrTTLP7IbVPBneVpm8rHzRpvEe1y/RHD96dZlWqh n4wg== 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=NDGVB4uc/9L8D6EYysA1otupkiXzJkfvAe8wQHNLxGA=; b=pf41kKNNxH+3hDoKWNpnsQZaurQAPwUqzsj0cU/UDfeWUvLfIanRW5qG0UqriSl+dG PNxNBAfzEE7t3pP6OaJ118hD7x4y/2yWlY0gWd5j7cs/Qz7krUNy+k+Omkixh2jizk21 bHt8BAShZZmVWp9pGlqSs2KhEokEf1rhG5ZWVlHwZoTu/Ly4BH1QGW2jjCc3TLSL4yGf +QAj0CevjZl3RYP2nFTcLjchdf/rT5ROnpHJc5532Elj0Ct328A2pzlhVpiSk6hPboZW rfm+W+rZT+cfWWBCn6CCeY+/tMI2sm83ptDwgp0xqz2UIytzHRhAbdLCDSbcvcrTiRHA 8pKg== X-Gm-Message-State: AOAM530IfzIU0Srkx4o0fCyE+Y+3mlmcnESoyY6gV+nVkCfoT1ttWAjS LnvxoR/DWZBFAKgZGLyCHtmUQ/fE24Q3xY6WdgM= X-Received: by 2002:a05:6512:3253:: with SMTP id c19mr11944089lfr.139.1597842280844; Wed, 19 Aug 2020 06:04:40 -0700 (PDT) MIME-Version: 1.0 References: <20200615154114.13184-1-mayflowerera@gmail.com> <20200615.182343.221546986577273426.davem@davemloft.net> In-Reply-To: From: Era Mayflower Date: Wed, 19 Aug 2020 13:03:37 +0000 Message-ID: Subject: Re: [PATCH] macsec: Support 32bit PN netlink attribute for XPN links To: David Miller Cc: kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org 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, Jun 24, 2020 at 10:23 AM Era Mayflower wrote: > > On Wed, Jun 17, 2020 at 1:32 AM Era Mayflower wrote: > > > > On Wed, Jun 17, 2020 at 10:02 AM Era Mayflower wrote: > > > > > > On Tue, Jun 16, 2020 at 1:23 AM David Miller wrote: > > > > > > > > From: Era Mayflower > > > > Date: Tue, 16 Jun 2020 00:41:14 +0900 > > > > > > > > > + if (tb_sa[MACSEC_SA_ATTR_PN]) { > > > > > > > > validate_add_rxsa() requires that MACSET_SA_ATTR_PN be non-NULL, so > > > > you don't need to add this check here. > > > > > > > > > > validate_add_rxsa() did not originally contain that requirement. > > > It does exist in validate_add_txsa(), which means that providing a PN > > > is necessary only when creating TXSA. > > > When creating an RXSA without providing a PN it will be set to 1 > > > (init_rx_sa+15). > > > This is the original behavior which of course can be changed. > > > > > > - Era. > > > > Sorry for the time issues, just noticed I sent the previous mail with > > future time. > > Fixed it permanently on my computer. > > Hello, is there any news? > > - Era. This patch is important to help projects like iproute2 use XPN macsec links. Please let me know if there is anything I need to fix. - Era.