From patchwork Thu Jan 28 12:39:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60719 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp449167lbb; Thu, 28 Jan 2016 04:42:56 -0800 (PST) X-Received: by 10.140.96.69 with SMTP id j63mr3090941qge.63.1453984976456; Thu, 28 Jan 2016 04:42:56 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l74si11966514qgl.121.2016.01.28.04.42.55; Thu, 28 Jan 2016 04:42:56 -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 D8AFB6196B; Thu, 28 Jan 2016 12:42:54 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=Z0yPBimr; 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 D075C619BD; Thu, 28 Jan 2016 12:40:02 +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 B0039617E5; Thu, 28 Jan 2016 12:39:46 +0000 (UTC) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by lists.linaro.org (Postfix) with ESMTPS id EF29E617E0 for ; Thu, 28 Jan 2016 12:39:44 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id is5so34111835obc.0 for ; Thu, 28 Jan 2016 04:39:44 -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=Z0yPBimrgy1wrGdMokQGJIWhlVLKzAw1Gr5Cj6HEWXDH8YQ9/xCOHUQvwMHSJmFuXN SgBIIPVh+WVs/Oo8RpPFgCVHeQB2br+7G2G2HlYsoNtsCgBCiAWGBNeLMNYDCXlbjCBb WxZA+81h3Q8IAo+9rUuiR4bSMtJhaU7x/j5Gg= 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=fZH38ioLQzaVLXuNfOzey5RyAPzRDsEHdtRiSxNgI3vWzzIa14MxjATEOFN6NpMkX/ qcxSnSbu1IGoYAG0Nmy89/6ghe1aLrrqeHscw29Fw0X5nD8WzGT1VB4iKEyVDBWzp2E4 dkKB2IIxtKU/O1F8UrmVYpjPoJ52lZFZSFHraLHaG87ea1aNkTbr24BbXA8EdNTd+rDa tqhz9702sZFweDIqrP3eE7l9Yx7wQ/uVFqgJlh00EtiKs36/uHDb6UZauXP+W3GtgNB+ 6Em2jhS16ZjvJus+ZqVxEvYihKxJOcoziOZ8lNKgKKF6BndRVZ7JekGt+KiKy0zKKHel Wwiw== X-Gm-Message-State: AG10YORCVpmTf0Tc4EOtp9/SdVqZvFkTU1v1Cq2fvyFO0lRDuGgZUs9Swwr1Z/nYSroTmdL9vVE= X-Received: by 10.182.213.7 with SMTP id no7mr1971909obc.22.1453984784541; Thu, 28 Jan 2016 04:39:44 -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 133sm5359632oid.5.2016.01.28.04.39.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 04:39:43 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 28 Jan 2016 06:39:34 -0600 Message-Id: <1453984776-29674-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453984776-29674-1-git-send-email-bill.fischofer@linaro.org> References: <1453984776-29674-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 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);