automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw112145 [PATCH] common/cnxk: add lower bound check for SSO resources
@ 2022-05-31 23:29 dpdklab
  0 siblings, 0 replies; only message in thread
From: dpdklab @ 2022-05-31 23:29 UTC (permalink / raw)
  To: test-report; +Cc: dpdk-test-reports

[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-31 23:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 23:29 |WARNING| pw112145 [PATCH] common/cnxk: add lower bound check for SSO resources dpdklab

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).