From patchwork Sun Jul 3 00:47:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Liang X-Patchwork-Id: 643660 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3rhs3D4DV7z9s9n for ; Sun, 3 Jul 2016 10:48:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=vkQ0NP8m; dkim-atps=neutral Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 3031E10C16; Sat, 2 Jul 2016 17:48:41 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id DF1A510C00 for ; Sat, 2 Jul 2016 17:48:39 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id 75E99162BD7 for ; Sat, 2 Jul 2016 18:48:39 -0600 (MDT) X-ASG-Debug-ID: 1467506918-0b32373f7c15b920001-byXFYA Received: from mx3-pf2.cudamail.com ([192.168.14.1]) by bar6.cudamail.com with ESMTP id 0sDHYPa5BMnpLC2h (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 02 Jul 2016 18:48:38 -0600 (MDT) X-Barracuda-Envelope-From: shaw.leon@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.1 Received: from unknown (HELO mail-pf0-f194.google.com) (209.85.192.194) by mx3-pf2.cudamail.com with ESMTPS (AES128-SHA encrypted); 3 Jul 2016 00:48:38 -0000 Received-SPF: pass (mx3-pf2.cudamail.com: SPF record at _netblocks.google.com designates 209.85.192.194 as permitted sender) X-Barracuda-Apparent-Source-IP: 209.85.192.194 X-Barracuda-RBL-IP: 209.85.192.194 Received: by mail-pf0-f194.google.com with SMTP id i123so13164425pfg.3 for ; Sat, 02 Jul 2016 17:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kMDFdiuMJOz6FE/0V1TVB4a/D+MNijph2u6eQKoFhDw=; b=vkQ0NP8mhJ4CUO6cT5AbSlYBqG2h+JhLFpkpTJP7OIfkNK1+qfqAyXhqgt0UiOe5Of YyC7wjNgnYaBEh/4V1ydMTZ3QLXM1RzpP7SJG1VjHxbx4gTTtm3K4lIFaOkXE3JZd7Ux qXx2Fm95STCRXU+HJ68Jixy/sTirlr880MHur+rvrvzvwr/d46Q4K8dUncT5X8VKwOUR k1IMPKIXfv4hxpZZUJccQnmXrWCudFDvl6QclIOicpHfONjSDTq0yOb+U8Ffxr95egmB ZKa59HWjxHC2WosSm/4b+MGwngpCzgTN/CfyLHUoqdF4xwBzi+T0aGqBXbevZh7OB9+c Rggw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kMDFdiuMJOz6FE/0V1TVB4a/D+MNijph2u6eQKoFhDw=; b=gW8Ln6AUX1cDF/C7JtxRm1TZNxbf09OIod6e887iTBFspGTFbOhR87fGqZGZ4fqMPI H3ZU89r8PNrUFm9a+r4RNZC31Idg975vJN6UKBqxhsaP+Or462GpUhw61uB1M6KCncRM XXK1GEJD2Awbn2V1yfXZsqhTZOwSSLSp2ATngoXmOn0jxR0/tc9iwcmGKgtDRIpYtiTQ Okpgz5RrA0XLVghuW8kJkoi428i9ku3CtpZF1V7DljBqbtlQhmSy6Xv3dkPuBZIaARud fuR30trN+oETp47t8ZF5T027+MjUXUdTuCUONfIXP2B1zkIha8BkxG7cVLQrX5dKiWge PbLA== X-Gm-Message-State: ALyK8tJ5d5VlPBVqBQkISt5MFY5CobGq8cdS8yC5R7w5pNhQRd5i2zJSiUZaclm8Bu8cJQ== X-Received: by 10.98.38.69 with SMTP id m66mr9757099pfm.57.1467506918131; Sat, 02 Jul 2016 17:48:38 -0700 (PDT) Received: from localhost.localdomain (li990-198.members.linode.com. [45.33.40.198]) by smtp.gmail.com with ESMTPSA id d130sm315491pfd.80.2016.07.02.17.48.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Jul 2016 17:48:37 -0700 (PDT) X-CudaMail-Envelope-Sender: shaw.leon@gmail.com From: Xiao Liang To: dev@openvswitch.org, Thomas F Herbert X-CudaMail-MID: CM-V2-701017494 X-CudaMail-DTE: 070216 X-CudaMail-Originating-IP: 209.85.192.194 Date: Sun, 3 Jul 2016 08:47:09 +0800 X-ASG-Orig-Subj: [##CM-V2-701017494##][PATCH v3 4/4] tests: Set default max_vlan_headers Message-Id: <20160703004709.1269-5-shaw.leon@gmail.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160703004709.1269-1-shaw.leon@gmail.com> References: <20160626062005.20267-1-shaw.leon@gmail.com> <20160703004709.1269-1-shaw.leon@gmail.com> X-GBUdb-Analysis: 0, 209.85.192.194, Ugly c=0.237282 p=-0.2 Source Normal X-MessageSniffer-Rules: 0-0-0-4915-c X-Barracuda-Connect: UNKNOWN[192.168.14.1] X-Barracuda-Start-Time: 1467506918 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.61 X-Barracuda-Spam-Status: No, SCORE=0.61 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=BSF_SC0_MISMATCH_TO, BSF_SC0_SA_TO_FROM_DOMAIN_MATCH, BSF_SC5_MJ1963, DKIM_SIGNED, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.30963 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS 0.01 BSF_SC0_SA_TO_FROM_DOMAIN_MATCH Sender Domain Matches Recipient Domain 0.50 BSF_SC5_MJ1963 Custom Rule MJ1963 Subject: [ovs-dev] [PATCH v3 4/4] tests: Set default max_vlan_headers X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Set default max_vlan_headers of test-odp and dpif-netdev to SIZE_MAX Signed-off-by: Xiao Liang --- lib/dpif-netdev.c | 1 + tests/test-odp.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index cbf7b97..a60c88a 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -90,6 +90,7 @@ static struct shash dp_netdevs OVS_GUARDED_BY(dp_netdev_mutex) static struct vlog_rate_limit upcall_rl = VLOG_RATE_LIMIT_INIT(600, 600); static struct odp_support dp_netdev_support = { + .max_vlan_headers = SIZE_MAX, .max_mpls_depth = SIZE_MAX, .recirc = true, }; diff --git a/tests/test-odp.c b/tests/test-odp.c index 8e4db09..735f2ff 100644 --- a/tests/test-odp.c +++ b/tests/test-odp.c @@ -62,6 +62,7 @@ parse_keys(bool wc_keys) .ct_zone = true, .ct_mark = true, .ct_label = true, + .max_vlan_headers = SIZE_MAX, }, };