automatic DPDK test reports
 help / color / mirror / Atom feed
From: dpdklab@iol.unh.edu
To: test-report@dpdk.org
Cc: dpdk-test-reports@iol.unh.edu
Subject: [dpdk-test-report] |WARNING| pw95518 [PATCH] pipeline: add support for LPM lookup
Date: Wed,  7 Jul 2021 17:14:44 -0400 (EDT)	[thread overview]
Message-ID: <20210707211444.D219488E71@noxus.dpdklab.iol.unh.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 2358 bytes --]

Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/95518

_apply patch failure_

Submitter: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Date: Wednesday, July 07 2021 20:48:04 
Applied on: CommitID:928a0263559647b2d7829bad2a47fdcd6b5014bd
Apply patch set 95518 failed:

Checking patch lib/pipeline/rte_swx_ctl.c...
Hunk #1 succeeded at 183 (offset -35 lines).
Hunk #2 succeeded at 309 (offset -35 lines).
error: while searching for:
		selector_abort(ctl, i);
}

static int
token_is_comment(const char *token)
{

error: patch failed: lib/pipeline/rte_swx_ctl.c:2207
Hunk #4 succeeded at 1562 (offset -685 lines).
Hunk #5 succeeded at 1638 (offset -685 lines).
Hunk #6 succeeded at 1705 (offset -685 lines).
Checking patch lib/pipeline/rte_swx_pipeline.c...
Hunk #1 succeeded at 9107 (offset -92 lines).
Hunk #2 succeeded at 9206 (offset -92 lines).
Hunk #3 succeeded at 9227 (offset -92 lines).
Hunk #4 succeeded at 9238 (offset -93 lines).
Hunk #5 succeeded at 9277 (offset -93 lines).
Applying patch lib/pipeline/rte_swx_ctl.c with 1 reject...
Hunk #1 applied cleanly.
Hunk #2 applied cleanly.
Rejected hunk #3.
Hunk #4 applied cleanly.
Hunk #5 applied cleanly.
Hunk #6 applied cleanly.
Applied patch lib/pipeline/rte_swx_pipeline.c cleanly.
diff a/lib/pipeline/rte_swx_ctl.c b/lib/pipeline/rte_swx_ctl.c	(rejected hunks)
@@ -2207,6 +2184,45 @@ rte_swx_ctl_pipeline_abort(struct rte_swx_ctl_pipeline *ctl)
 		selector_abort(ctl, i);
 }
 
+static int
+mask_to_prefix(uint64_t mask, uint32_t mask_length, uint32_t *prefix_length)
+{
+	uint32_t n_trailing_zeros = 0, n_ones = 0, i;
+
+	if (!mask) {
+		*prefix_length = 0;
+		return 0;
+	}
+
+	/* Count trailing zero bits. */
+	for (i = 0; i < 64; i++) {
+		if (mask & (1LLU << i))
+			break;
+
+		n_trailing_zeros++;
+	}
+
+	/* Count the one bits that follow. */
+	for ( ; i < 64; i++) {
+		if (!(mask & (1LLU << i)))
+			break;
+
+		n_ones++;
+	}
+
+	/* Check that no more one bits are present */
+	for ( ; i < 64; i++)
+		if (mask & (1LLU << i))
+			return -EINVAL;
+
+	/* Check that the input mask is a prefix or the right length. */
+	if (n_ones + n_trailing_zeros != mask_length)
+		return -EINVAL;
+
+	*prefix_length = n_ones;
+	return 0;
+}
+
 static int
 token_is_comment(const char *token)
 {

https://lab.dpdk.org/results/dashboard/patchsets/17718/

UNH-IOL DPDK Community Lab

                 reply	other threads:[~2021-07-07 21:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210707211444.D219488E71@noxus.dpdklab.iol.unh.edu \
    --to=dpdklab@iol.unh.edu \
    --cc=dpdk-test-reports@iol.unh.edu \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).