Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp990067rwb; Thu, 8 Dec 2022 05:37:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PHN9vII+5xZlGLm5pce6+KKUrBuvQu28Ca6awqN9n9Ss/xmxTTUDR6kIaKGWTqBAPKwcf X-Received: by 2002:a63:5548:0:b0:476:c39b:ab5b with SMTP id f8-20020a635548000000b00476c39bab5bmr73539941pgm.565.1670506634187; Thu, 08 Dec 2022 05:37:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670506634; cv=none; d=google.com; s=arc-20160816; b=pb/fDZeBg/DXE54XLS8pNeLeO1ksDY+Hc3FG6O2CcyxKWJi7P8z1BkAPze/kdfXBN9 zH4oN5aTHFxejaNlJ9X6L1SssWawD0y8y2DK1wuVTq4iaPhSVHRYef0eh1vjIvyxJF0z FTP2HvK3bf90F/OGPNoyOqLf27UhRazVVTOzqWf9AOxFFcOtLTFS/WNRBsmYIgZB1OiM 98ZWU9QvuLJtFs+0vHFVKBBbvI9cyWNnoerUJKEfo9oD9AHeqZ+5xNkToJIJEyxv2NId Nn+2GIEzHmwvMJ2qKVn/93sColVeQvE/6YNp7t1oOn5Gup/6oZtJSE5n0RJVGraP1uhi T39g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zVJSAXuSWuj3v68OSqUKKOxN4D3hFXCNdAsxOa9BPCQ=; b=n0z2JEn7tebqy0cfwWikxJWZbKCVJC8krnzlAmaBDi2iPzNK5oBLhSFHjBeiy1QfZo A8A0ow46LuWJ/QzD1TLrO8Xv30As6v/iHJ/Hk6CVVcJsXnbQkpEgLeKwL6ECRgzIjgOt TVObUh6Ms780dNpJQIkNB3qFLhi4P9YsRR1F3kHTO3BLd/KsCbc+Hfihh0ceKnFFXeNo IYzjf4W1edJ8J5AfUb33KMRqBwejDX5tl2hizVfqIPrnO6KkhPO4hhXQFb48MbwiwQiD Rq1NIt7+YvwuK/CZ4DCteFmELQJ8SifeNxuTIbRfiJknxelTyYYVOsR65yTSY+WAEx9P tJHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b="jFuwADu/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nn8-20020a17090b38c800b001fac102fdeesi4626938pjb.95.2022.12.08.05.37.04; Thu, 08 Dec 2022 05:37:14 -0800 (PST) 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=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b="jFuwADu/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbiLHMcc (ORCPT + 72 others); Thu, 8 Dec 2022 07:32:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230018AbiLHMc1 (ORCPT ); Thu, 8 Dec 2022 07:32:27 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3044D8BD2D for ; Thu, 8 Dec 2022 04:32:26 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id f7so1862627edc.6 for ; Thu, 08 Dec 2022 04:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zVJSAXuSWuj3v68OSqUKKOxN4D3hFXCNdAsxOa9BPCQ=; b=jFuwADu/rknSohNdnjBfV6ZDTfnpc/6yOLxDtWy/SFK0cE018QolLi8DCWdahBnYdR O6wyvbaKlEG7uiKJiMXTjQxvmA/0ztgaNJ3g7gQb6FZs78t9zJZvkClVCMjfCOIM2zN+ 1rR7lwCXV6Z/g/8KUYSlsCkOshRKf7UuDxxozF8DupzO3lLUJ+IDcNjijwycjdlR65+Q 4Fj14YMH9ffFVp7rCO2eSOy6X38faPqabVylZr/EQ0J/7PapuONFKlMyJmfl/q8zdeiE zmVGkblnHKlHdFc8cbjqJFV3yOYUThgcVnN+NhiV3moFAS7utt7sJDqbPUtSEIDGOK/k uwRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zVJSAXuSWuj3v68OSqUKKOxN4D3hFXCNdAsxOa9BPCQ=; b=2+XSmoRMEPVV2bLEfm5akCYphDSxiTbApgxWmJDOgJEMVZdhfOnpb5ce5RPGo43iWk PP/oTJ/fMNA/GY+tmXIuD3p5Iro6KGZyC6IOBkOvY7hLeUeV38zTY8tatC94nDBOACfC zyaLoSYg4gWWSjLHMD4Aq37MEdO9n2H09jmyWG90PPaD9dlhfHTeglelqkl9WqhZey8e bnBLEp1QGdDJJo6Mt3WnHUBFbnerxXweTqlnnZG7z0m2bYN2ZS8KH8jm4EWPbPY7Hv2U O+PD1k1qAosYMvBawGTmxDpIRYFEdl/o1IAeK69hcxn2jtEr5sbCaXIULzN2pLlY0sgm C3qg== X-Gm-Message-State: ANoB5pkV23b9HKllmxiA2oLLD5ojOUcGzm6h0fEuYoCpQhfyKn6oDnjP NBb9kmwadWsu3b5uNkJT4NW/Hg== X-Received: by 2002:a05:6402:4006:b0:46c:d5e8:2fc9 with SMTP id d6-20020a056402400600b0046cd5e82fc9mr2543002eda.13.1670502744767; Thu, 08 Dec 2022 04:32:24 -0800 (PST) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id dn18-20020a05640222f200b00463b9d47e1fsm3337988edb.71.2022.12.08.04.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 04:32:23 -0800 (PST) Date: Thu, 8 Dec 2022 13:32:22 +0100 From: Jiri Pirko To: ehakim@nvidia.com Cc: linux-kernel@vger.kernel.org, raeds@nvidia.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, sd@queasysnail.net, atenart@kernel.org Subject: Re: [PATCH net-next v4 1/2] macsec: add support for IFLA_MACSEC_OFFLOAD in macsec_changelink Message-ID: References: <20221208115517.14951-1-ehakim@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221208115517.14951-1-ehakim@nvidia.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Thu, Dec 08, 2022 at 12:55:16PM CET, ehakim@nvidia.com wrote: >From: Emeel Hakim > >Add support for changing Macsec offload selection through the >netlink layer by implementing the relevant changes in >macsec_changelink. > >Since the handling in macsec_changelink is similar to macsec_upd_offload, >update macsec_upd_offload to use a common helper function to avoid >duplication. > >Example for setting offload for a macsec device: > ip link set macsec0 type macsec offload mac > >Reviewed-by: Raed Salem >Signed-off-by: Emeel Hakim Looks fine to me. Reviewed-by: Jiri Pirko