From patchwork Wed Oct 21 05:14:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 55342 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f71.google.com (mail-lf0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 5093A22EA2 for ; Wed, 21 Oct 2015 05:16:48 +0000 (UTC) Received: by lffz202 with SMTP id z202sf12704288lff.3 for ; Tue, 20 Oct 2015 22:16:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=u7pCNaiVQf8nPhPo2/jxRviyLswBeiEdSIT5AXm7Jh4=; b=M5dJYRElA6J2nBE6cEhTNW9GpLRqnsjvowSdPuWDoy1XkjnRwrNLa+3udK4mzOJOHS Xa8X4yGCVFfdpx90vAhlAC3uotZNs9u8rnhFuIMAb9c2uqtFUd2Bw8SPooUPmbI4LcpQ nftuEutJqt4O2VWlBr5kYMiM9QobnT3RqgjHiDKgpJaYgvk+Ks6puABBlfxMMFL8tC+9 LW1qzUF8WvtaYn58F0f87S0mLCfLeoJLMTG3D1GeQxUpTR8GX/jiA12/dE7tjqrkXSTr JImuLzheO5T/ZSgH3jnEk4QtzM0k8bJngnVKbIPdEIwa6ojx/4WatzkAXQFwewUSuIUf xK8A== X-Gm-Message-State: ALoCoQnq6VB0tRe6D08ZipLfVwYwBx69wQQIfCCoi8G+jl9tv09oIXZb3uxXiAuKtlOZRsLT4++0 X-Received: by 10.181.11.195 with SMTP id ek3mr1679245wid.7.1445404607212; Tue, 20 Oct 2015 22:16:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.147.194 with SMTP id v185ls132210lfd.22.gmail; Tue, 20 Oct 2015 22:16:47 -0700 (PDT) X-Received: by 10.25.21.149 with SMTP id 21mr2649182lfv.61.1445404607064; Tue, 20 Oct 2015 22:16:47 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id r71si5029749lfe.161.2015.10.20.22.16.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 22:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbec13 with SMTP id ec13so27836553lbb.0 for ; Tue, 20 Oct 2015 22:16:46 -0700 (PDT) X-Received: by 10.112.64.41 with SMTP id l9mr3045971lbs.32.1445404606728; Tue, 20 Oct 2015 22:16:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2467521lbq; Tue, 20 Oct 2015 22:16:46 -0700 (PDT) X-Received: by 10.140.42.139 with SMTP id c11mr8619021qga.106.1445404606009; Tue, 20 Oct 2015 22:16:46 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t29si6474828qkt.62.2015.10.20.22.16.45; Tue, 20 Oct 2015 22:16:45 -0700 (PDT) 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; Received: by lists.linaro.org (Postfix, from userid 109) id A600A61FE8; Wed, 21 Oct 2015 05:16:45 +0000 (UTC) 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 7817461FD2; Wed, 21 Oct 2015 05:15: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 2B39F61FD0; Wed, 21 Oct 2015 05:15:48 +0000 (UTC) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by lists.linaro.org (Postfix) with ESMTPS id 5B8A061FE8 for ; Wed, 21 Oct 2015 05:15:14 +0000 (UTC) Received: by padhk11 with SMTP id hk11so43469832pad.1 for ; Tue, 20 Oct 2015 22:15:13 -0700 (PDT) X-Received: by 10.66.254.73 with SMTP id ag9mr8368908pad.116.1445404513739; Tue, 20 Oct 2015 22:15:13 -0700 (PDT) Received: from localhost.localdomain ([122.166.219.57]) by smtp.gmail.com with ESMTPSA id dd4sm6749251pbb.52.2015.10.20.22.15.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Oct 2015 22:15:13 -0700 (PDT) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Wed, 21 Oct 2015 10:44:55 +0530 Message-Id: <1445404495-14144-4-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445404495-14144-1-git-send-email-bala.manoharan@linaro.org> References: <1445404495-14144-1-git-send-email-bala.manoharan@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT/PATCHv1 4/4] validation: classificaiton: remove redundant sequence number check X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bala.manoharan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 check for invalid sequence number is performed during packet create and it is not required during packet receive Signed-off-by: Balasubramanian Manoharan Reviewed-by: Ivan Khoronzhuk --- test/validation/classification/odp_classification_test_pmr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/validation/classification/odp_classification_test_pmr.c b/test/validation/classification/odp_classification_test_pmr.c index c058caf..4bfe0cb 100644 --- a/test/validation/classification/odp_classification_test_pmr.c +++ b/test/validation/classification/odp_classification_test_pmr.c @@ -443,7 +443,6 @@ static void classification_test_pmr_term_udp_sport(void) pkt = receive_packet(&retqueue, ODP_TIME_SEC); CU_ASSERT(pkt != ODP_PACKET_INVALID); - CU_ASSERT(cls_pkt_get_seq(pkt) != TEST_SEQ_INVALID); CU_ASSERT(seqno == cls_pkt_get_seq(pkt)); CU_ASSERT(retqueue == defqueue); odp_packet_free(pkt); @@ -523,7 +522,6 @@ static void classification_test_pmr_term_ipproto(void) pkt = receive_packet(&retqueue, ODP_TIME_SEC); CU_ASSERT(pkt != ODP_PACKET_INVALID); - CU_ASSERT(cls_pkt_get_seq(pkt) != TEST_SEQ_INVALID); CU_ASSERT(seqno == cls_pkt_get_seq(pkt)); CU_ASSERT(retqueue == defqueue);