Message ID | 20201228092520.11807-34-taoyunxiang@cmss.chinamobile.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D4Qcb43YJz9sWC for <incoming@patchwork.ozlabs.org>; Tue, 29 Dec 2020 05:12:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6759886EC7; Mon, 28 Dec 2020 18:12:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4qK6mibakujn; Mon, 28 Dec 2020 18:12:07 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 6C14586D12; Mon, 28 Dec 2020 18:10:53 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 45566C1DD7; Mon, 28 Dec 2020 18:10:53 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7058FC0893 for <ovs-dev@openvswitch.org>; Mon, 28 Dec 2020 09:26:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2600581B5E for <ovs-dev@openvswitch.org>; Mon, 28 Dec 2020 09:26:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uAGWI2kY+cUe for <ovs-dev@openvswitch.org>; Mon, 28 Dec 2020 09:26:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from cmccmta1.chinamobile.com (cmccmta1.chinamobile.com [221.176.66.79]) by hemlock.osuosl.org (Postfix) with ESMTP id 5ABD1870C2 for <ovs-dev@openvswitch.org>; Mon, 28 Dec 2020 09:26:02 +0000 (UTC) Received: from spf.mail.chinamobile.com (unknown[172.16.121.3]) by rmmx-syy-dmz-app04-12004 (RichMail) with SMTP id 2ee45fe9a49a77e-c216e; Mon, 28 Dec 2020 17:25:46 +0800 (CST) X-RM-TRANSID: 2ee45fe9a49a77e-c216e X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from yun.localdomain (unknown[112.25.154.146]) by rmsmtp-syy-appsvr02-12002 (RichMail) with SMTP id 2ee25fe9a48a90b-7b8a0; Mon, 28 Dec 2020 17:25:46 +0800 (CST) X-RM-TRANSID: 2ee25fe9a48a90b-7b8a0 From: Tao YunXiang <taoyunxiang@cmss.chinamobile.com> To: ovs-dev@openvswitch.org Date: Mon, 28 Dec 2020 01:24:51 -0800 Message-Id: <20201228092520.11807-34-taoyunxiang@cmss.chinamobile.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201228092520.11807-1-taoyunxiang@cmss.chinamobile.com> References: <8> <20201228092520.11807-1-taoyunxiang@cmss.chinamobile.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 28 Dec 2020 18:10:33 +0000 Cc: Rongyin <rongyin@cmss.chinamobile.com> Subject: [ovs-dev] [PATCH 33/62] dpif-netdev.c: for offloaded flow, change offloaded_type to partial when rte_flow_query doesn't available X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
DPDK Offload API to test
|
expand
|
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 623e1c8..ff226ea 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3165,7 +3165,15 @@ get_dpif_flow_status(const struct dp_netdev *dp, attrs->dp_layer = offload_attrs.dp_layer; } } else if (attrs) { - attrs->offloaded = false; + attrs->offloaded = offload_attrs.offloaded; + /* When dpdk_rte_flow_query doesn't available,we should also use + * offloaded flag to mark if this flow has been offloaded success + * and for offloaded:partial, dp:ovs , the stats get from userspace + * datapath + * + * + * attrs->offloaded = false; + */ attrs->dp_layer = "ovs"; } }
From: Rongyin <rongyin@cmss.chinamobile.com> Code Source From: Self Code Description: For offloaded flow, change offloaded_type to partial when rte_flow_query doesn't available Jira: #[Optional] 市场项目编号(名称):[Optional] --- lib/dpif-netdev.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)