Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp572330ioo; Thu, 26 May 2022 09:39:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQFa9i3OVz6N6VYj2RKi82M1JPik+iBR1R1ZDJNc8y9mVmn+uWfJvj2UHe4QzTXpm2i0J7 X-Received: by 2002:a17:902:e883:b0:163:7abd:d06b with SMTP id w3-20020a170902e88300b001637abdd06bmr3391285plg.51.1653583183402; Thu, 26 May 2022 09:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653583183; cv=none; d=google.com; s=arc-20160816; b=YIYxeWtfJFjDGdu61OPPY7Kmgx1A55SA70JDm8HbP3B3SInlF0ohGRhdglOSor7cUl PCn65KPYgjSHvzoljhGJ34zAUr+ZUuffux1FwTMdyhhiwSNfLyZ62tl1TQoFetirk2NS w9XEzWDaBqdIEQ4z00XQZ5oo/TP0cQIj6nn9/jNSSp+MKA+X3rbyRD/X79vv+RrTqRTv tOpAnQ91aGUo+DGdrIGyNXjp9Mxq+EsTY25VzWjybcXyZu5yke/gVZ2a4Eo1CL+zFaqJ 1qyOCErJoMiMtiRw+9yOI86UVoLNLLvGpS/5CXqbuvPo+Xf2GIafm5Im3l8Rtdzqcma/ iP8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=QBuQubLXsKdHypsOLS0DFxdMqRgrnMQKA1oWPGoQKlI=; b=Rg63ONi4iTVUY2+MlWHSWZ1anL+6MJaFO51thE2cTJc2y8yuDI45JUyygilOqlQQsF ZiGNT4kUtsj77dstAvdLZgNr16EgEIQPxXWM30HqIuHn5wjaPqQTNFFiKijWYnPMA8ea GMlP3fpAzd5bA53Sdc9yMUwTfMHc3Twdvoz90Pe3cP5O0Oji+1xaa/OS1dpY83T4BKH6 O3xW+wsmuQZ2Epg0A1sEV+8XVruK+fUYsHCcCVNY4WI9Wq8a7fNinBIlideB6l+GY0g/ UO9D7wFwtEHERysAq58tHCfv+hSbHDcLFspjCXA7vB2VEyaC8dn6NdsysuwOKzXGNuIU Erxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ljly1e9w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020aa78d91000000b0051872773159si2185900pfr.228.2022.05.26.09.39.31; Thu, 26 May 2022 09:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ljly1e9w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232391AbiEZI7b (ORCPT + 99 others); Thu, 26 May 2022 04:59:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232463AbiEZI7a (ORCPT ); Thu, 26 May 2022 04:59:30 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E000A8880 for ; Thu, 26 May 2022 01:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653555568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QBuQubLXsKdHypsOLS0DFxdMqRgrnMQKA1oWPGoQKlI=; b=Ljly1e9wzrW8u5S9J4AMm5uY2/UH3i0p3kWkw38uFTCnONZpVTWSIHgd9fL6XITOIhjf1k vpjYGbHspViSqCnN8VTEUzR+v9/t7wb4WVpyqLUHDxqWAyQFtES3Obg+6TlVEYbBvOvtEx 7nxM5S4JJC9ki+H08qci5b5dJX/hHGw= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-577-P4MqsIMZOP2jImVxM-YdsA-1; Thu, 26 May 2022 04:59:26 -0400 X-MC-Unique: P4MqsIMZOP2jImVxM-YdsA-1 Received: by mail-wr1-f69.google.com with SMTP id n13-20020a5d67cd000000b0021003b039e0so153041wrw.12 for ; Thu, 26 May 2022 01:59:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=QBuQubLXsKdHypsOLS0DFxdMqRgrnMQKA1oWPGoQKlI=; b=hzr0zsFicgJm1HyhIbdaVK8ODziLzVjg2QIEWYm0vaAgpH0+6BGsJXlYqaN0u1zHhK CgBpv6tMxwKBLE4qbZJPLxPr378WEzrLTNHXaTf9t30X6qc2L2sO4tecZeFFA3LOdmWC Iv+ZrsGDqX8ZcWwnXm0nz9kM7PebB+BHxudO/o/0buYiDXiM6VfS6W5kKwYc7YZrTJPN rb+IwlFLmAEi/y2rzhUZRSzCWD4aWjrXMmWa9VSjOJ1mTv6nS9I1q9+HnobcS7YYfiRB htASQQzWd7SDFF6/pbthKYoY/NpZcwUGJTtRvNpaOzvNSOZ4D8hiMCiaCynafFBK4BJC 2osw== X-Gm-Message-State: AOAM531Hev+L2kmmVK18/Z/IECQpjX6cmDoYSiQpdP0ZU8dEz2Vql5jS IW6HxDPR58ZhPuBnibcq/wK7IyORKPaWXkWZ5w20TbQf4sRI+X9c0MDQDNvSKhU5xK8VKFxsAUg 5Fm6SnyecY/YQaxEGj8ePphc4 X-Received: by 2002:a05:6000:1acc:b0:20f:f12a:a535 with SMTP id i12-20020a0560001acc00b0020ff12aa535mr10151113wry.375.1653555565586; Thu, 26 May 2022 01:59:25 -0700 (PDT) X-Received: by 2002:a05:6000:1acc:b0:20f:f12a:a535 with SMTP id i12-20020a0560001acc00b0020ff12aa535mr10151093wry.375.1653555565296; Thu, 26 May 2022 01:59:25 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-112-184.dyn.eolo.it. [146.241.112.184]) by smtp.gmail.com with ESMTPSA id c124-20020a1c3582000000b003973ea7e725sm4616302wma.0.2022.05.26.01.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 01:59:25 -0700 (PDT) Message-ID: Subject: Re: [PATCH net] net: macsec: Retrieve MACSec-XPN attributes before offloading From: Paolo Abeni To: Carlos Fernandez Cc: carlos.fernandez@technica-engineering.de, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Era Mayflower , "open list:NETWORKING DRIVERS" , open list Date: Thu, 26 May 2022 10:59:23 +0200 In-Reply-To: <20220524114134.366696-1-carlos.fernandez@technica-engineering.de> References: <20220524114134.366696-1-carlos.fernandez@technica-engineering.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-05-24 at 13:41 +0200, Carlos Fernandez wrote: > When MACsec offloading is used with XPN, before mdo_add_rxsa > and mdo_add_txsa functions are called, the key salt is not > copied to the macsec context struct. Offloaded phys will need > this data when performing offloading. > > Fix by copying salt and id to context struct before calling the > offloading functions. > > Fixes: 48ef50fa866a ("macsec: Netlink support of XPN cipher suites") > Signed-off-by: Carlos Fernandez I'm sorry to nick-picking again, but this patch don't pass checkpatch validation: https://patchwork.kernel.org/project/netdevbpf/patch/20220524114134.366696-1-carlos.fernandez@technica-engineering.de/ Specifically, you should add a 'From:' tag as the first line: From: Carlos Fernandez (Or send this patch from the above email address) Thanks!