From patchwork Thu Sep 3 09:57:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 76381 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7397DA04D7; Thu, 3 Sep 2020 11:59:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6231C1C0CC; Thu, 3 Sep 2020 11:59:04 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D35461C0B5 for ; Thu, 3 Sep 2020 11:59:02 +0200 (CEST) IronPort-SDR: gLkUUWjN9T3n44J/rrSlnJ9O4YgqVN+uNkWig0ku+ikb/fzCz3XLQV0FKJbMvznRC3Z6P40tY9 xz0S9xuFaK4g== X-IronPort-AV: E=McAfee;i="6000,8403,9732"; a="219101842" X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="219101842" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2020 02:59:01 -0700 IronPort-SDR: Vj6EyLr91J6go09hVe9zheVO/COORp5coMlXkLplX1fB14byDvg36lR2IoDbXRFBZtKj5yZvQ1 YomLUKFWfbMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,386,1592895600"; d="scan'208";a="405434609" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga001.fm.intel.com with ESMTP; 03 Sep 2020 02:59:00 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Thu, 3 Sep 2020 17:57:45 +0800 Message-Id: <20200903095746.32389-7-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200903095746.32389-1-weix.xie@intel.com> References: <20200903095746.32389-1-weix.xie@intel.com> Subject: [dts] [dts 6/7] test_plans/ipfrag_test_plan:update test plan to sync with testsuite X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xie wei --- test_plans/ipfrag_test_plan.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/test_plans/ipfrag_test_plan.rst b/test_plans/ipfrag_test_plan.rst index 9c0afed..31dcc7b 100644 --- a/test_plans/ipfrag_test_plan.rst +++ b/test_plans/ipfrag_test_plan.rst @@ -133,6 +133,34 @@ Prerequisites - The set of logical cores to execute the packet forwarding task - Mapping of the NIC RX queues to logical cores handling them. +6. Set lpm table for IPv4 & IPv6 packet:: + + sed -i '/l3fwd_ipv4_route_array\[\].*{/,/^\}\;/c\\static struct l3fwd_ipv4_route l3fwd_ipv4_route_array[] = {\ + {RTE_IPV4(100,10,0,0), 16, 1},\ + {RTE_IPV4(100,20,0,0), 16, 1},\ + {RTE_IPV4(100,30,0,0), 16, 0},\ + {RTE_IPV4(100,40,0,0), 16, 0},\ + {RTE_IPV4(100,50,0,0), 16, 1},\ + {RTE_IPV4(100,60,0,0), 16, 1},\ + {RTE_IPV4(100,70,0,0), 16, 0},\ + {RTE_IPV4(100,80,0,0), 16, 0},\ + };' examples/ip_fragmentation/main.c + + sed -i '/l3fwd_ipv6_route_array\[\].*{/,/^\}\;/c\\static struct l3fwd_ipv6_route l3fwd_ipv6_route_array[] = {\ + {{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\ + {{2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\ + {{3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\ + {{4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\ + {{5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\ + {{6,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 1},\ + {{7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\ + {{8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, 48, 0},\ + };' examples/ip_fragmentation/main.c + +And re-compile examples/ip_fragmentation:: + + make -C examples/ip_fragmentation + Test Case 1: IP Fragmentation normal ip packet forward ======================================================