Message ID | 20201228092520.11807-22-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 4D4Qdq74V5z9sWC for <incoming@patchwork.ozlabs.org>; Tue, 29 Dec 2020 05:13:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5A09787132; Mon, 28 Dec 2020 18:13:18 +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 PcW5nj+rFXg6; Mon, 28 Dec 2020 18:13:15 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 50C4E87120; Mon, 28 Dec 2020 18:11:08 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0E5DBC1DC9; Mon, 28 Dec 2020 18:11:08 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id D624AC0891 for <ovs-dev@openvswitch.org>; Mon, 28 Dec 2020 09:26:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C183A86C46 for <ovs-dev@openvswitch.org>; Mon, 28 Dec 2020 09:26:06 +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 gqj44cnYz8g3 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 cmccmta3.chinamobile.com (cmccmta3.chinamobile.com [221.176.66.81]) by whitealder.osuosl.org (Postfix) with ESMTP id AF43586C98 for <ovs-dev@openvswitch.org>; Mon, 28 Dec 2020 09:26:03 +0000 (UTC) Received: from spf.mail.chinamobile.com (unknown[172.16.121.3]) by rmmx-syy-dmz-app10-12010 (RichMail) with SMTP id 2eea5fe9a4959c7-c33c7; Mon, 28 Dec 2020 17:25:41 +0800 (CST) X-RM-TRANSID: 2eea5fe9a4959c7-c33c7 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-7b879; Mon, 28 Dec 2020 17:25:41 +0800 (CST) X-RM-TRANSID: 2ee25fe9a48a90b-7b879 From: Tao YunXiang <taoyunxiang@cmss.chinamobile.com> To: ovs-dev@openvswitch.org Date: Mon, 28 Dec 2020 01:24:39 -0800 Message-Id: <20201228092520.11807-22-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:34 +0000 Cc: Liuchang <liuchang@cmss.chinamobile.com> Subject: [ovs-dev] [PATCH 21/62] netdev-offload-dpdk: add vxlan decap debug info 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/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index 338a272..3e268bf 100644 --- a/lib/netdev-offload-dpdk.c +++ b/lib/netdev-offload-dpdk.c @@ -637,6 +637,7 @@ parse_vxlan_match(struct flow_patterns *patterns, if (is_all_zeros(&match->wc.masks.tunnel, sizeof match->wc.masks.tunnel)) { return 0; } + VLOG_DBG("TIMO:in parse_vxlan_match"); /* no need to tranmit layer2/layer3/layer4 as * for outer key fpga only support vni */ @@ -1423,10 +1424,12 @@ netdev_offload_dpdk_validate_flow(const struct match *match) /* Create a wc-zeroed version of flow. */ match_init(&match_zero_wc, &match->flow, &match->wc); + /* support tunnel now so mark this checker if (!is_all_zeros(&match_zero_wc.flow.tunnel, sizeof match_zero_wc.flow.tunnel)) { goto err; } + */ if (masks->metadata || masks->skb_priority || masks->pkt_mark || masks->dp_hash) { @@ -1467,9 +1470,11 @@ netdev_offload_dpdk_validate_flow(const struct match *match) } /* If fragmented, then don't HW accelerate - for now. */ + /* move this checker to parse_flow_match if (match_zero_wc.flow.nw_frag) { goto err; } + */ /* Unsupported L4. */ if (masks->igmp_group_ip4 || masks->ct_tp_src || masks->ct_tp_dst) {
From: Liuchang <liuchang@cmss.chinamobile.com> Code Source From: Self Code Description: add vxlan decap debug info Jira: #[Optional] 市场项目编号(名称):[Optional] --- lib/netdev-offload-dpdk.c | 5 +++++ 1 file changed, 5 insertions(+)