Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp775236pxb; Tue, 5 Apr 2022 22:49:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUYr9/Hb+tDSNUuFMksaEXeHgTi73aMh+530e2ZYHD9Aj72HuhNAkHMfus0iSZakGF6RSZ X-Received: by 2002:a17:903:216:b0:156:1e8d:a81 with SMTP id r22-20020a170903021600b001561e8d0a81mr6898261plh.140.1649224161198; Tue, 05 Apr 2022 22:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649224161; cv=none; d=google.com; s=arc-20160816; b=D44qeqPmPbkCi5RH3ir5r5/38DuvJrJTz27iSPH5F8dHzEvGq532pcB0dSD28QdmbQ NuvYUZzcS+u541M0k6L9brRVfEgSOmH9R5/HLN9CDKi732Oi6AO9bx0Ej8dj3KgTJpTs CmuBWl8zBLl+diPd6fcByropq4UhUmaDbnNazDNym5jUnukF950LsTRLTD75VO1rmWJm 9vx/sbGkqY/d+SHA3Om4XuqR5X5p5doWrcDVFDBt+va4ZJUM/h+eJa1fKfTbVoaAlUJ2 U2T4VI2nnn1r2yBKzpDjOvjuPdOGxHnKKsoon41GKlC2/F5ku2gZRoTf47rXtpZOvwdU MS7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=EJskeIBbl6yrirNy4s27VAVAl66Ihk5kHs4/ZyWSw3U=; b=xkZinLrW9voefHxLLDDvvOu/5UFomC+iyIRGDiWd2z2gzBQxsx1cWDv/i4I6dKLpWP V3SX+IoeXnkr5C7flAoOSPz18Wz9BmaIxt8chOf2jQ8BaYCfjnF2WIjej6YgSz3J3fIZ YFZ4HV2FXBHIBtJ8CQjwTafrDp4q8powr7ztPEZd7XiIHxo07KI3zKKnAMSxdgkKvIyR rSI1a3cJgWZwE9QipP9tBeSG60ZwWFwXhlFe6IUikDZp5LwpXU95YlSUMijI6URjgO5M ZdUGavZKZbGs269IWAFKrwFOkrwExbSDMcyWehkVeDColAlwUxCvlIAhPb2DH78UbvPe oEKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B9q2naRj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w4-20020a170902904400b00156a18597easi8110682plz.452.2022.04.05.22.49.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:49:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B9q2naRj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 075AE1A9CBB; Tue, 5 Apr 2022 22:22:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1579217AbiDEX0g (ORCPT + 99 others); Tue, 5 Apr 2022 19:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346802AbiDEOGR (ORCPT ); Tue, 5 Apr 2022 10:06:17 -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 1717E1563E9 for ; Tue, 5 Apr 2022 05:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649163490; 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: in-reply-to:in-reply-to:references:references; bh=EJskeIBbl6yrirNy4s27VAVAl66Ihk5kHs4/ZyWSw3U=; b=B9q2naRjRtsWLSgnFlTf73zuXJOoN7L3IBfjE5ZiVxYw5dmj7r7hxoH5FqLWq87EK71+I+ 7zX/DFUrljqQQdgUo6iUZNWnGc03hcevycJ8E3BDxkqGqC8EwiSJpq8MHdFglizh4LBsxh HcSgijYSVJgz8olQVpy/8YG83IdsgTU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-173-rZe767cMN8euYMtdoUbPwA-1; Tue, 05 Apr 2022 08:58:06 -0400 X-MC-Unique: rZe767cMN8euYMtdoUbPwA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2A52D805F65; Tue, 5 Apr 2022 12:58:06 +0000 (UTC) Received: from RHTPC1VM0NT (unknown [10.22.17.196]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D25B34029DE; Tue, 5 Apr 2022 12:58:05 +0000 (UTC) From: Aaron Conole To: Ilya Maximets Cc: netdev@vger.kernel.org, dev@openvswitch.org, linux-kernel@vger.kernel.org, Jakub Kicinski , Paolo Abeni , "David S. Miller" Subject: Re: [ovs-dev] [PATCH net] net: openvswitch: don't send internal clone attribute to the userspace. References: <20220404104150.2865736-1-i.maximets@ovn.org> Date: Tue, 05 Apr 2022 08:58:05 -0400 In-Reply-To: <20220404104150.2865736-1-i.maximets@ovn.org> (Ilya Maximets's message of "Mon, 4 Apr 2022 12:41:50 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Ilya Maximets writes: > 'OVS_CLONE_ATTR_EXEC' is an internal attribute that is used for > performance optimization inside the kernel. It's added by the kernel > while parsing user-provided actions and should not be sent during the > flow dump as it's not part of the uAPI. > > The issue doesn't cause any significant problems to the ovs-vswitchd > process, because reported actions are not really used in the > application lifecycle and only supposed to be shown to a human via > ovs-dpctl flow dump. However, the action list is still incorrect > and causes the following error if the user wants to look at the > datapath flows: > > # ovs-dpctl add-dp system@ovs-system > # ovs-dpctl add-flow "" "clone(ct(commit),0)" > # ovs-dpctl dump-flows > , packets:0, bytes:0, used:never, > actions:clone(bad length 4, expected -1 for: action0(01 00 00 00), > ct(commit),0) > > With the fix: > > # ovs-dpctl dump-flows > , packets:0, bytes:0, used:never, > actions:clone(ct(commit),0) > > Additionally fixed an incorrect attribute name in the comment. > > Fixes: b233504033db ("openvswitch: kernel datapath clone action") > Signed-off-by: Ilya Maximets > --- Acked-by: Aaron Conole