From patchwork Thu Jan 28 12:47:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60729 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp466321lbb; Thu, 28 Jan 2016 05:15:01 -0800 (PST) X-Received: by 10.107.163.137 with SMTP id m131mr4002849ioe.1.1453986901181; Thu, 28 Jan 2016 05:15:01 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id in8si4662389igb.32.2016.01.28.05.15.00; Thu, 28 Jan 2016 05:15:01 -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 8286A6181D; Thu, 28 Jan 2016 13: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=PTZ8LNE/; 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 072B6619EC; Thu, 28 Jan 2016 13:00:46 +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 B908961740; Thu, 28 Jan 2016 12:57:54 +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 8BDFB6194F for ; Thu, 28 Jan 2016 12:47:54 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id ba1so34331568obb.3 for ; Thu, 28 Jan 2016 04:47:54 -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=PTZ8LNE/7dZ1JaL1jQbgUG7KrDVB9UL0UemVAVRTp3KdTNfd1sjtin1yFGvShGnrgF BC33mflhfEQLtGqchi5HdA3HQ4A9PNYLSTxl7cWc7b4tR0pKduKQhb8+oBaz2O9OPo5a WxNmCfEDWdEW62QGDp2aqKdfcv+new1wzU1H0= 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=FyyB4zoU3UF0E5/XlWs8OSDvDEYNogcy8oOm9htY3owQDelHLQG1cuatGdbwER4cwF qjOaBW5MGKzZZVHAuHrGF4uS7RViw3q9ZBmpRGpbS7YoU9kBt8BijvH8PwLWHQ/WUIHk /ZxWdJCwl+RTFAfCUS6vr9uL07WJS51qw36Im3I5rJEbFMJHkl7X9TRp7J8O193cyHL0 6aD10mBYYqe5xRhIaZJZhHRPWfiy2c4kU+BkVXNyhuOhhBFFKNX5I5rv81xK5dBuMIkH Ki4FkmYBrGgdlgF/cnMQC1q4sRP6OpbRONhI/mEqgRNeiVEYS5IqU1nLsKtGJisQXkJc acQA== X-Gm-Message-State: AG10YOQuVkKXmtHtsZCUbaOTbXUab6EJe31kH+mt4w/kxt9kCX/e9/4XV6iTHKScKfJbCZc6Y/I= X-Received: by 10.60.132.42 with SMTP id or10mr1947134oeb.41.1453985274147; Thu, 28 Jan 2016 04:47:54 -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 u18sm5343302oie.9.2016.01.28.04.47.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 04:47:53 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 28 Jan 2016 06:47:42 -0600 Message-Id: <1453985264-3807-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453985264-3807-1-git-send-email-bill.fischofer@linaro.org> References: <1453985264-3807-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv4 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);