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: |WARNING| pw112145 [PATCH] common/cnxk: add lower bound check for SSO resources
Date: Tue, 31 May 2022 19:29:16 -0400 (EDT)	[thread overview]
Message-ID: <20220531232916.9D2516D4C2@noxus.dpdklab.iol.unh.edu> (raw)

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

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

_apply patch failure_

Submitter: Hanumanth Pothula <hpothula@marvell.com>
Date: Tuesday, May 31 2022 12:19:50 
Applied on: CommitID:f62212d39a1b5f1118dabbdfcbae1ac6394291a7
Apply patch set 112145 failed:

Checking patch drivers/common/cnxk/roc_sso.c...
error: while searching for:
	struct sso_lf_alloc_rsp *rsp_hwgrp;
	int rc;

	if (roc_sso->max_hwgrp < nb_hwgrp)
		return -ENOENT;
	if (roc_sso->max_hws < nb_hws)
		return -ENOENT;

	rc = sso_rsrc_attach(roc_sso, SSO_LF_TYPE_HWS, nb_hws);

error: patch failed: drivers/common/cnxk/roc_sso.c:598
Applying patch drivers/common/cnxk/roc_sso.c with 1 reject...
Rejected hunk #1.
diff a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/roc_sso.c	(rejected hunks)
@@ -598,9 +598,9 @@ roc_sso_rsrc_init(struct roc_sso *roc_sso, uint8_t nb_hws, uint16_t nb_hwgrp)
 	struct sso_lf_alloc_rsp *rsp_hwgrp;
 	int rc;
 
-	if (roc_sso->max_hwgrp < nb_hwgrp)
+	if (!nb_hwgrp || roc_sso->max_hwgrp < nb_hwgrp)
 		return -ENOENT;
-	if (roc_sso->max_hws < nb_hws)
+	if (!nb_hws || roc_sso->max_hws < nb_hws)
 		return -ENOENT;
 
 	rc = sso_rsrc_attach(roc_sso, SSO_LF_TYPE_HWS, nb_hws);

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

UNH-IOL DPDK Community Lab

                 reply	other threads:[~2022-05-31 23:29 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=20220531232916.9D2516D4C2@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).