From patchwork Wed Jan 27 01:18:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60554 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2304189lbb; Tue, 26 Jan 2016 17:20:57 -0800 (PST) X-Received: by 10.50.183.11 with SMTP id ei11mr26365110igc.81.1453857657443; Tue, 26 Jan 2016 17:20:57 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q33si8082024ioi.117.2016.01.26.17.20.57; Tue, 26 Jan 2016 17:20:57 -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 CA90D617DB; Wed, 27 Jan 2016 01:20:56 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=J7BWYVUi; 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_H2,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 07269618D3; Wed, 27 Jan 2016 01:18:51 +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 67D09617D7; Wed, 27 Jan 2016 01:18:27 +0000 (UTC) Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) by lists.linaro.org (Postfix) with ESMTPS id 8CFF8617D4 for ; Wed, 27 Jan 2016 01:18:25 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id ba1so157969962obb.3 for ; Tue, 26 Jan 2016 17:18:25 -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=J7BWYVUiSIbTXiWkHiN15/tEA4PmT7QBuRcoxYAF46psrO88f2VKnkMgxr3qtOTbCF eXNxVYnlV3tavNE2pcnmsR7+/tj1JI+usy7ybwn+dayhYJ2csJmcm8iPFZsGJttzQS78 FHJquOwjzm6MGUbUJOIv2tHJ/hA6x6j7vczTg= 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=kevF1tMlA+buIzTZa2HKKc4wG4JBIA/9sRSXbwlmo6EBVL7ubfyw6lS/bcHulyXcXe 16cabfIhjXpunmS3lsSYI6rutQAA4uLgav3/xnHd338nBJmimCZHnw5tzZDv5C7r2UMc 95RoZEVsQ8Nw39Mj/oGoCPgAHVFDC9q7Y4CTjD00aFSfcgbcqwbMeUEjBYyBReAN3UBX JFFgQlJ90a+IkEvkign3nkWseyF5E6SaKO4kEob29PY96Oba59v21QxRhot/gl9fVgX8 2dhp/oorvBQ4RoPwcdlstWULP2EX1Jy+HJY6qiKG/6z9hj+I5VS5yXFgEF/6nnmTk5pY CWrA== X-Gm-Message-State: AG10YOTVSSRFG+5AGY2KfXIqNCzIdnVav+pfwh12dskW8L1TGKhd4sEsxnffbHFPJeHgqqPjmFk= X-Received: by 10.60.94.82 with SMTP id da18mr19890050oeb.40.1453857505123; Tue, 26 Jan 2016 17:18:25 -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 e4sm1886973oic.1.2016.01.26.17.18.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jan 2016 17:18:24 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 26 Jan 2016 19:18:14 -0600 Message-Id: <1453857496-12895-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453857496-12895-1-git-send-email-bill.fischofer@linaro.org> References: <1453857496-12895-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 3/5] 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);