* |WARNING| pw122712 [PATCH] common/cnxk: fix second pass flow rule layer type
@ 2023-01-31 3:58 dpdklab
0 siblings, 0 replies; only message in thread
From: dpdklab @ 2023-01-31 3:58 UTC (permalink / raw)
To: test-report; +Cc: dpdk-test-reports
[-- Attachment #1: Type: text/plain, Size: 3484 bytes --]
Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/122712
_apply patch failure_
Submitter: Satheesh Paul Antonysamy <psatheesh@marvell.com>
Date: Tuesday, January 31 2023 03:36:52
Applied on: CommitID:2a211079a92e962bbd0ec81e425a6ffc32890e67
Apply patch set 122712 failed:
Checking patch drivers/common/cnxk/roc_npc_mcam.c...
error: while searching for:
npc_mcam_set_channel(flow, req, npc->channel, (BIT_ULL(12) - 1),
pst->is_second_pass_rule);
}
/* Always match both 1st pass and 2nd pass ltypes for all rules */
if (!pst->is_second_pass_rule && pst->has_eth_type) {
la_offset = __builtin_popcount(npc->keyx_supp_nmask[flow->nix_intf] &
((1ULL << 9 /* LA offset */) - 1));
la_offset *= 4;
mask = ~((0xfULL << la_offset));
/* Mask ltype ETHER (0x2) and CPT_HDR (0xa) */
req->entry_data.kw[0] &= mask;
req->entry_data.kw_mask[0] &= mask;
req->entry_data.kw[0] |= (0x2ULL << la_offset);
req->entry_data.kw_mask[0] |= (0x7ULL << la_offset);
flow->mcam_data[0] &= mask;
flow->mcam_mask[0] &= mask;
flow->mcam_data[0] |= (0x2ULL << la_offset);
flow->mcam_mask[0] |= (0x7ULL << la_offset);
}
} else {
uint16_t pf_func = (flow->npc_action >> 4) & 0xffff;
error: patch failed: drivers/common/cnxk/roc_npc_mcam.c:668
Checking patch drivers/common/cnxk/roc_npc_mcam_dump.c...
Applying patch drivers/common/cnxk/roc_npc_mcam.c with 1 reject...
Rejected hunk #1.
Applied patch drivers/common/cnxk/roc_npc_mcam_dump.c cleanly.
diff a/drivers/common/cnxk/roc_npc_mcam.c b/drivers/common/cnxk/roc_npc_mcam.c (rejected hunks)
@@ -668,22 +668,32 @@ npc_mcam_alloc_and_write(struct npc *npc, struct roc_npc_flow *flow,
npc_mcam_set_channel(flow, req, npc->channel, (BIT_ULL(12) - 1),
pst->is_second_pass_rule);
}
- /* Always match both 1st pass and 2nd pass ltypes for all rules */
- if (!pst->is_second_pass_rule && pst->has_eth_type) {
+ /*
+ * For second pass rule, set LA LTYPE to CPT_HDR.
+ * For all other rules, set LA LTYPE to match both 1st pass and 2nd pass ltypes.
+ */
+ if (pst->is_second_pass_rule || (!pst->is_second_pass_rule && pst->has_eth_type)) {
la_offset = __builtin_popcount(npc->keyx_supp_nmask[flow->nix_intf] &
((1ULL << 9 /* LA offset */) - 1));
la_offset *= 4;
mask = ~((0xfULL << la_offset));
- /* Mask ltype ETHER (0x2) and CPT_HDR (0xa) */
req->entry_data.kw[0] &= mask;
req->entry_data.kw_mask[0] &= mask;
- req->entry_data.kw[0] |= (0x2ULL << la_offset);
- req->entry_data.kw_mask[0] |= (0x7ULL << la_offset);
flow->mcam_data[0] &= mask;
flow->mcam_mask[0] &= mask;
- flow->mcam_data[0] |= (0x2ULL << la_offset);
- flow->mcam_mask[0] |= (0x7ULL << la_offset);
+ if (pst->is_second_pass_rule) {
+ req->entry_data.kw[0] |= ((uint64_t)NPC_LT_LA_CPT_HDR) << la_offset;
+ req->entry_data.kw_mask[0] |= (0xFULL << la_offset);
+ flow->mcam_data[0] |= ((uint64_t)NPC_LT_LA_CPT_HDR) << la_offset;
+ flow->mcam_mask[0] |= (0xFULL << la_offset);
+ } else {
+ /* Mask ltype ETHER (0x2) and CPT_HDR (0xa) */
+ req->entry_data.kw[0] |= (0x2ULL << la_offset);
+ req->entry_data.kw_mask[0] |= (0x7ULL << la_offset);
+ flow->mcam_data[0] |= (0x2ULL << la_offset);
+ flow->mcam_mask[0] |= (0x7ULL << la_offset);
+ }
}
} else {
uint16_t pf_func = (flow->npc_action >> 4) & 0xffff;
https://lab.dpdk.org/results/dashboard/patchsets/25125/
UNH-IOL DPDK Community Lab
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-31 3:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 3:58 |WARNING| pw122712 [PATCH] common/cnxk: fix second pass flow rule layer type 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).