From patchwork Wed Jan 27 20:12:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60646 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp61876lbb; Wed, 27 Jan 2016 12:15:01 -0800 (PST) X-Received: by 10.107.138.90 with SMTP id m87mr2773116iod.127.1453925700933; Wed, 27 Jan 2016 12:15:00 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id cy20si14766905igc.81.2016.01.27.12.15.00; Wed, 27 Jan 2016 12:15:00 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2BC67615DE; Wed, 27 Jan 2016 20:15:00 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=IrBjLoKW; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 8502561816; Wed, 27 Jan 2016 20:12:42 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 14C5E618CB; Wed, 27 Jan 2016 20:12:26 +0000 (UTC) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by lists.linaro.org (Postfix) with ESMTPS id 14083615CC for ; Wed, 27 Jan 2016 20:12:24 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id o124so12982840oia.3 for ; Wed, 27 Jan 2016 12:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dgyxj/xEj86Dt8b/VLv9RnEFDqkiHj/cLheuVp81g9Y=; b=IrBjLoKWLLnZGbnfgBfB76F3KSdZNgPdo2RmweRxyG2hNODXifo6ScktNMm8I2Nb76 lqcqTJse8R+/70BWQU6r93HjDzfpSlg19w2U1eKzjFRRvBk/Crkv41uUBxFnzWJ5ZK3R 08SHEZI2MxPQP2KEc91PQFE+hzJKTkCcUOLDw= 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=dgyxj/xEj86Dt8b/VLv9RnEFDqkiHj/cLheuVp81g9Y=; b=m4RAcVEwlnXwIQI3J++hgVyD11eolor76/ce6XKhot/h7m5WKD1vyoipjDMOWBYXHu 2yHmUljQ8j4LNqydlf4V6DQdEywf6L+wu2XUb6W8waziXqR4pRk4666zvmtVeT2MfgDL c6qrSc53/bo6EsblZzOpOHAGMY8Kmj8IzjYy25ZNJG8w7IcNnsHKkXD+nIIbLCisTR06 uEiM0aFQGemc+1R6mx1JbDYIdxuyRzXrhM3O8qOrlEtetxZcTM5CDwzChZoBfydU6DIR LG1BKIPTC3ck7VPl3hlx8TEm2+ELYVFu2tFCwonuEiV0/1L/Xiw43uzow/yrukY1mdXx bvEg== X-Gm-Message-State: AG10YOQpkmLC65f8rrdXCPZS7aMgJ+NfZLlBL4qe8EFr7jz2NmUKcmf7FVgJFAaM/dQ0BhA/Jqo= X-Received: by 10.202.78.19 with SMTP id c19mr22197834oib.71.1453925543601; Wed, 27 Jan 2016 12:12:23 -0800 (PST) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id a1sm2565930obt.0.2016.01.27.12.12.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jan 2016 12:12:23 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 27 Jan 2016 14:12:12 -0600 Message-Id: <1453925534-29840-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453925534-29840-1-git-send-email-bill.fischofer@linaro.org> References: <1453925534-29840-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 4/6] validataion: packet: add tests for broadcast and multicast flags X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Bill Fischofer --- test/validation/packet/packet.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/validation/packet/packet.c b/test/validation/packet/packet.c index 2467dec..c5e2356 100644 --- a/test/validation/packet/packet.c +++ b/test/validation/packet/packet.c @@ -609,12 +609,16 @@ void packet_test_in_flags(void) TEST_INFLAG(pkt, l3); TEST_INFLAG(pkt, l4); TEST_INFLAG(pkt, eth); + TEST_INFLAG(pkt, eth_bcast); + TEST_INFLAG(pkt, eth_mcast); TEST_INFLAG(pkt, jumbo); TEST_INFLAG(pkt, vlan); TEST_INFLAG(pkt, vlan_qinq); TEST_INFLAG(pkt, arp); TEST_INFLAG(pkt, ipv4); TEST_INFLAG(pkt, ipv6); + TEST_INFLAG(pkt, ip_bcast); + TEST_INFLAG(pkt, ip_mcast); TEST_INFLAG(pkt, ipfrag); TEST_INFLAG(pkt, ipopt); TEST_INFLAG(pkt, ipsec); @@ -724,13 +728,16 @@ static void _packet_compare_inflags(odp_packet_t pkt1, odp_packet_t pkt2) COMPARE_INFLAG(pkt1, pkt2, l3); COMPARE_INFLAG(pkt1, pkt2, l4); COMPARE_INFLAG(pkt1, pkt2, eth); + COMPARE_INFLAG(pkt1, pkt2, eth_bcast); + COMPARE_INFLAG(pkt1, pkt2, eth_mcast); COMPARE_INFLAG(pkt1, pkt2, jumbo); - COMPARE_INFLAG(pkt1, pkt2, eth); COMPARE_INFLAG(pkt1, pkt2, vlan); COMPARE_INFLAG(pkt1, pkt2, vlan_qinq); COMPARE_INFLAG(pkt1, pkt2, arp); COMPARE_INFLAG(pkt1, pkt2, ipv4); COMPARE_INFLAG(pkt1, pkt2, ipv6); + COMPARE_INFLAG(pkt1, pkt2, ip_bcast); + COMPARE_INFLAG(pkt1, pkt2, ip_mcast); COMPARE_INFLAG(pkt1, pkt2, ipfrag); COMPARE_INFLAG(pkt1, pkt2, ipopt); COMPARE_INFLAG(pkt1, pkt2, ipsec);