From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E9FD43034 for ; Fri, 11 Aug 2023 14:39:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0910040E03; Fri, 11 Aug 2023 14:39:30 +0200 (CEST) Received: from mail-io1-f99.google.com (mail-io1-f99.google.com [209.85.166.99]) by mails.dpdk.org (Postfix) with ESMTP id E51CD40E03 for ; Fri, 11 Aug 2023 14:39:25 +0200 (CEST) Received: by mail-io1-f99.google.com with SMTP id ca18e2360f4ac-790bed44880so67851939f.0 for ; Fri, 11 Aug 2023 05:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1691757565; x=1692362365; h=cc:to:from:subject:message-id:date:from:to:cc:subject:date :message-id:reply-to; bh=EnwP+3k+2sFxA9+LAMRnBGTV5ptXDlB3WCdW0x7eV4A=; b=OEYFMVBhgaL4zarAtbi/Vyyw6Z5gd9AMJ/ZPQTM1XW/X4zu4pm63JzE5NPf5nlzPwd EdViByqhx0iTcm5ycaryXT+3DkXGYAqxKn+WLvjiU10dg62MIHdiZzXcUKshxsSF+2AJ 8mcJ+rWAltNGvD3RLUih2UhgXykGwDS7QwD70= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691757565; x=1692362365; h=cc:to:from:subject:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EnwP+3k+2sFxA9+LAMRnBGTV5ptXDlB3WCdW0x7eV4A=; b=TC3tG679zRMQLo2Ju8qrEhRiVrpR6DtYYE38q2H9KPYMFu/yhmRocfK8KOdQPpR1QU WTBMks+MfBaJ3GR9ehRVfpUCxytu821sOrMFEPKDypuNa9waLMKw0/AgPmGKoGuQP99n IXJK2Uof8ielgfYhp3kJrcL7Qi624ICmbLXxwS1ce+VPnt4t3QmsDxV/SQF7Ld24nNv9 VfvDw0ADeB9X3E1DKs9ZB9LhkIS/DEZtPKFRkK9iExlDPxEE/Bc1S82suV1lhVNxWe30 eqlfXVsI25/2C6uHiK7Lf0Mq4e1YJzk3fvn//Dm6DvZSYqdvWUQSAlYf2k4Z9klUe+f/ C1XQ== X-Gm-Message-State: AOJu0Yx9Ab3YlxxTw8+5SWMPJ4oWqZMmQz7j/1Wzb1Thm7kDdX0XOfYM lQC7UdKGkINumYB2p30WKV+ehxV2x+ladWuLLyacaNIwOuDwkY/vguW5kg4KgPQZiWXRjwpyxQ= = X-Google-Smtp-Source: AGHT+IERcLjVrSlEgE4tRh95omfiH7VlFcIMUpANoajLDMEwPNk4zQ9U3mvtFPG8rGsMDzI56YD/SIypwmze X-Received: by 2002:a6b:3108:0:b0:785:cfa1:fcac with SMTP id j8-20020a6b3108000000b00785cfa1fcacmr2199049ioa.20.1691757565412; Fri, 11 Aug 2023 05:39:25 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id v7-20020a5ed707000000b0078364aca911sm163029iom.32.2023.08.11.05.39.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Aug 2023 05:39:25 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Date: Fri, 11 Aug 2023 05:39:25 -0700 (PDT) Message-ID: <64d62bfd.5e0a0220.2d14d.91faSMTPIN_ADDED_MISSING@mx.google.com> Received: from [172.21.0.4] (unknown [172.18.0.240]) by postal.iol.unh.edu (Postfix) with ESMTP id 0F0706052471; Fri, 11 Aug 2023 08:39:25 -0400 (EDT) Subject: |WARNING| pw130151-130154 [PATCH] [v2,4/4] net/cpfl: setup ctrl path From: dpdklab@iol.unh.edu To: test-report@dpdk.org Cc: dpdk-test-reports@iol.unh.edu Content-Type: text/plain X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: iol-testing Test-Status: WARNING http://dpdk.org/patch/130151 _apply patch failure_ Submitter: Wenjing Qiao Date: Friday, August 11 2023 10:00:17 Applied on: CommitID:70b6941e4e22d67bc10495d1638234a7e974f582 Apply patch set 130151-130154 failed: Checking patch drivers/net/cpfl/cpfl_ethdev.c... Hunk #1 succeeded at 17 (offset -4 lines). Hunk #2 succeeded at 28 (offset -5 lines). error: while searching for: return 0; } static int cpfl_parse_devargs(struct rte_pci_device *pci_dev, struct cpfl_adapter_ext *adapter, bool first) { error: patch failed: drivers/net/cpfl/cpfl_ethdev.c:1671 error: while searching for: &adapter->base.is_rx_singleq); if (ret != 0) goto fail; fail: rte_kvargs_free(kvlist); return ret; error: patch failed: drivers/net/cpfl/cpfl_ethdev.c:1719 Checking patch drivers/net/cpfl/cpfl_ethdev.h... error: while searching for: #define ACC_LCE_ID 15 #define IMC_MBX_EFD_ID 0 struct cpfl_vport_param { struct cpfl_adapter_ext *adapter; uint16_t devarg_id; /* arg id from user */ error: patch failed: drivers/net/cpfl/cpfl_ethdev.h:87 error: while searching for: uint16_t req_vport_nb; uint8_t repr_args_num; struct rte_eth_devargs repr_args[CPFL_REPR_ARG_NUM_MAX]; }; struct p2p_queue_chunks_info { error: patch failed: drivers/net/cpfl/cpfl_ethdev.h:100 Checking patch drivers/net/cpfl/meson.build... Hunk #1 succeeded at 36 (offset -2 lines). Applying patch drivers/net/cpfl/cpfl_ethdev.c with 2 rejects... Hunk #1 applied cleanly. Hunk #2 applied cleanly. Rejected hunk #3. Rejected hunk #4. Applying patch drivers/net/cpfl/cpfl_ethdev.h with 2 rejects... Rejected hunk #1. Rejected hunk #2. Applied patch drivers/net/cpfl/meson.build cleanly. hint: Use 'git am --show-current-patch' to see the failed patch diff a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c (rejected hunks) @@ -1671,6 +1675,19 @@ parse_repr(const char *key __rte_unused, const char *value, void *args) return 0; } +#ifdef CPFL_FLOW_JSON_SUPPORT +static int +parse_parser_file(const char *key, const char *value, void *args) +{ + char *name = args; + + PMD_DRV_LOG(DEBUG, "value:\"%s\" for key:\"%s\"", value, key); + strlcpy(name, value, CPFL_FLOW_FILE_LEN); + + return 0; +} +#endif + static int cpfl_parse_devargs(struct rte_pci_device *pci_dev, struct cpfl_adapter_ext *adapter, bool first) { @@ -1719,7 +1736,18 @@ cpfl_parse_devargs(struct rte_pci_device *pci_dev, struct cpfl_adapter_ext *adap &adapter->base.is_rx_singleq); if (ret != 0) goto fail; - +#ifdef CPFL_FLOW_JSON_SUPPORT + if (rte_kvargs_get(kvlist, CPFL_FLOW_PARSER)) { + ret = rte_kvargs_process(kvlist, CPFL_FLOW_PARSER, + &parse_parser_file, cpfl_args->flow_parser); + if (ret) { + PMD_DRV_LOG(ERR, "Failed to parser flow_parser, ret: %d", ret); + goto fail; + } + } else { + cpfl_args->flow_parser[0] = '\0'; + } +#endif fail: rte_kvargs_free(kvlist); return ret; diff a/drivers/net/cpfl/cpfl_ethdev.h b/drivers/net/cpfl/cpfl_ethdev.h (rejected hunks) @@ -87,6 +87,8 @@ #define ACC_LCE_ID 15 #define IMC_MBX_EFD_ID 0 +#define CPFL_FLOW_FILE_LEN 100 + struct cpfl_vport_param { struct cpfl_adapter_ext *adapter; uint16_t devarg_id; /* arg id from user */ @@ -100,6 +102,7 @@ struct cpfl_devargs { uint16_t req_vport_nb; uint8_t repr_args_num; struct rte_eth_devargs repr_args[CPFL_REPR_ARG_NUM_MAX]; + char flow_parser[CPFL_FLOW_FILE_LEN]; }; struct p2p_queue_chunks_info { Checking patch drivers/net/cpfl/cpfl_flow_parser.c... Checking patch drivers/net/cpfl/cpfl_flow_parser.h... Checking patch drivers/net/cpfl/meson.build... error: drivers/net/cpfl/meson.build: does not match index Applied patch drivers/net/cpfl/cpfl_flow_parser.c cleanly. Applied patch drivers/net/cpfl/cpfl_flow_parser.h cleanly. hint: Use 'git am --show-current-patch' to see the failed patch Checking patch drivers/net/cpfl/cpfl_actions.h... Checking patch drivers/net/cpfl/cpfl_controlq.c... Checking patch drivers/net/cpfl/cpfl_controlq.h... Checking patch drivers/net/cpfl/cpfl_rules.c... Checking patch drivers/net/cpfl/cpfl_rules.h... Checking patch drivers/net/cpfl/meson.build... error: drivers/net/cpfl/meson.build: does not match index Applied patch drivers/net/cpfl/cpfl_actions.h cleanly. Applied patch drivers/net/cpfl/cpfl_controlq.c cleanly. Applied patch drivers/net/cpfl/cpfl_controlq.h cleanly. Applied patch drivers/net/cpfl/cpfl_rules.c cleanly. Applied patch drivers/net/cpfl/cpfl_rules.h cleanly. hint: Use 'git am --show-current-patch' to see the failed patch Checking patch drivers/net/cpfl/cpfl_ethdev.c... error: drivers/net/cpfl/cpfl_ethdev.c: does not match index Checking patch drivers/net/cpfl/cpfl_ethdev.h... error: while searching for: #include "cpfl_logs.h" #include "cpfl_cpchnl.h" #include "cpfl_representor.h" /* Currently, backend supports up to 8 vports */ #define CPFL_MAX_VPORT_NUM 8 error: patch failed: drivers/net/cpfl/cpfl_ethdev.h:22 error: while searching for: #define CPFL_FLOW_FILE_LEN 100 struct cpfl_vport_param { struct cpfl_adapter_ext *adapter; uint16_t devarg_id; /* arg id from user */ error: patch failed: drivers/net/cpfl/cpfl_ethdev.h:89 error: while searching for: rte_spinlock_t repr_lock; struct rte_hash *repr_whitelist_hash; }; TAILQ_HEAD(cpfl_adapter_list, cpfl_adapter_ext); int cpfl_vport_info_create(struct cpfl_adapter_ext *adapter, struct cpfl_vport_id *vport_identity, struct cpchnl2_vport_info *vport_info); error: patch failed: drivers/net/cpfl/cpfl_ethdev.h:216 Checking patch drivers/net/cpfl/cpfl_vchnl.c... error: drivers/net/cpfl/cpfl_vchnl.c: does not exist in index Applying patch drivers/net/cpfl/cpfl_ethdev.h with 3 rejects... Rejected hunk #1. Rejected hunk #2. Rejected hunk #3. hint: Use 'git am --show-current-patch' to see the failed patch diff a/drivers/net/cpfl/cpfl_ethdev.h b/drivers/net/cpfl/cpfl_ethdev.h (rejected hunks) @@ -22,6 +22,7 @@ #include "cpfl_logs.h" #include "cpfl_cpchnl.h" #include "cpfl_representor.h" +#include "cpfl_controlq.h" /* Currently, backend supports up to 8 vports */ #define CPFL_MAX_VPORT_NUM 8 @@ -89,6 +90,10 @@ #define CPFL_FLOW_FILE_LEN 100 +#define CPFL_RX_CFGQ_NUM 4 +#define CPFL_TX_CFGQ_NUM 4 +#define CPFL_CFGQ_NUM 8 + struct cpfl_vport_param { struct cpfl_adapter_ext *adapter; uint16_t devarg_id; /* arg id from user */ @@ -216,10 +221,19 @@ struct cpfl_adapter_ext { rte_spinlock_t repr_lock; struct rte_hash *repr_whitelist_hash; + + /* ctrl vport and ctrl queues. */ + struct cpfl_vport ctrl_vport; + uint8_t ctrl_vport_recv_info[IDPF_DFLT_MBX_BUF_SIZE]; + struct idpf_ctlq_info *ctlqp[CPFL_CFGQ_NUM]; + struct cpfl_ctlq_create_info cfgq_info[CPFL_CFGQ_NUM]; }; TAILQ_HEAD(cpfl_adapter_list, cpfl_adapter_ext); +int cpfl_vc_create_ctrl_vport(struct cpfl_adapter_ext *adapter); +int cpfl_config_ctlq_rx(struct cpfl_adapter_ext *adapter); +int cpfl_config_ctlq_tx(struct cpfl_adapter_ext *adapter); int cpfl_vport_info_create(struct cpfl_adapter_ext *adapter, struct cpfl_vport_id *vport_identity, struct cpchnl2_vport_info *vport_info); https://lab.dpdk.org/results/dashboard/patchsets/27300/ UNH-IOL DPDK Community Lab