From patchwork Thu Jan 28 15:05:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 60740 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp533938lbb; Thu, 28 Jan 2016 07:08:46 -0800 (PST) X-Received: by 10.55.40.70 with SMTP id o67mr4150689qkh.78.1453993726209; Thu, 28 Jan 2016 07:08:46 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 62si10013251qkz.111.2016.01.28.07.08.45; Thu, 28 Jan 2016 07:08:46 -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 BE8A9618E0; Thu, 28 Jan 2016 15:08:45 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=SDgzKURF; 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 684CE6196C; Thu, 28 Jan 2016 15:05:54 +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 65252618D9; Thu, 28 Jan 2016 15:05:23 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by lists.linaro.org (Postfix) with ESMTPS id 2E712617D6 for ; Thu, 28 Jan 2016 15:05:15 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id r14so28081494oie.0 for ; Thu, 28 Jan 2016 07:05:15 -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=SDgzKURFPMzyMU9XGiKrTH8iWC2ACo2P5GdkzTy+BkT0Ee+68ynbayZwDqoIMJjVpq 2poAxR40i8sBwqHVvyOZkFO+/ZDT8wOOzBxNSMllYCFBJwaSSdZ0VxYV8fM8MuMzPzYl ItYxi1rPOl5Q3hTxAW1hwKqQJ1b9TzT6SH9vk= 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=RhK8ArAZmEUYrFRo7Yq9YaczvSebqhDBBd2oeZP+TV6uXy4j0Rqc9Z+NEp1T/yM3AP VymAvSHvTsgmqbZ9Cs/iN2dKGQGc6P5R/PoU3GbWAxWL37dJN9I/aHsgGz+F7d0gcX3R i06nljaKI83TJLguiTi5voFoUTqo81ExPvPDDwchDrvRBCyiH/wvpjIDKpigt+wNLvG2 KPALy8uxcCkYzLAg0ivL29fvPNKOX71Ce54pHUMQdpSflXISJBfCKF+0o4NgUHfw8H5D /upXOxbP/RavX/rY1j0nF/nlgKr1ONVeULl5vVNANxQYdC1qF6pMYvIeuiK6wYlbqNfU LLhA== X-Gm-Message-State: AG10YOQvrmCUXQYetmh5t8eqxX3ubAgk+c9wdOu+QtKIqoq7p+t8fqLqNNiySqXnk+HEfrLKq9w= X-Received: by 10.202.85.194 with SMTP id j185mr2484488oib.107.1453993514726; Thu, 28 Jan 2016 07:05:14 -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 k186sm5632766oif.13.2016.01.28.07.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 07:05:14 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 28 Jan 2016 09:05:03 -0600 Message-Id: <1453993505-32024-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453993505-32024-1-git-send-email-bill.fischofer@linaro.org> References: <1453993505-32024-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv5 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);