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 34B9645B94; Mon, 21 Oct 2024 19:10:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B33DF402D8; Mon, 21 Oct 2024 19:10:01 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 0472140263 for ; Mon, 21 Oct 2024 19:10:00 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-71e953f4e7cso3095570b3a.3 for ; Mon, 21 Oct 2024 10:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1729530599; x=1730135399; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=tMQzofLU97JmwKhM05/DCCrXBQFt1aQ7iFD7CK25UbA=; b=sTs0pu4cyNjrzLO2cwYtl98oKLaeTM7psmPqsUby1GP2EJ4wDSySeHISuCtFxVETP5 wDBE5CEp1YdxTk7BCHsnb/K+5dY9vdGTZ+fHh+oJa7yVqsWD/dN/xtTLKZ1lTlX8TNhg Sk9XdWxogxSowuLZzLzAu5/zMurku0f2ZFOmvNVCT630o/S9+q/U13FfIxb9Oxl+0NOV 8SwIu5/3gN7ZH3T5KI+SRU7Ho68AxgXFpdKQUr0/f7rZyUSVCF4HchBy4KDkZ7+1Dneu 5GRcbi5NEKATT6dwYVSC+hlFlPYNEmF/Qx6kssg4zXIxsj3DUQzLYRME38vxT1AoEkJH L1cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729530599; x=1730135399; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tMQzofLU97JmwKhM05/DCCrXBQFt1aQ7iFD7CK25UbA=; b=RHJycLbRln7RBGNTJHOc1EXrbnhgzFn0AEz5V2CQf3l1hW77lAOnkP9TtmxrM5vG6q mUlEXfBWMhi036vErSQGiBT+bC39Aq9/xsy0qzPFLIfEq0aGlv/3LYIhHgMEHCzN6TMC GskqIbLwZfP0yp/KKdl7Wk0scszmDV0Uq2aBy40DxI5CDr+tpJN/jgnjCbgxVKPdqCgb J721zJjtACjVu5jfaY5xF5rbs6fcMVnS1cuSA1dWvv2fJoR8WheX9GZT2Iw/lqR/wpIL m0Arju+Lb+QArvhto0oiBr+QZY+gkbhp0FzvfvDxpygZfiDPuRckIpBQjPd01/OzSAJH rkSA== X-Forwarded-Encrypted: i=1; AJvYcCV7kmnSfK4IgYCVZG5lQ8XOde8lJo4iGSJfWohOXBmqMZnWtDPFDcsLkrl0DNk4h5uNUss=@dpdk.org X-Gm-Message-State: AOJu0YxINwWlNI39dxVHlHgM9gC/04wkiGKLijbzb3rn8g9gmKOCFJ7S 9z7fqkjJNBQFpz2lsAf2IKGjcpqq2xqJTjieu6DNblDuEXCvEZPzG7y6QV650bQ= X-Google-Smtp-Source: AGHT+IHG1JcnhV5J7iVVISnUpkeZ27Y+s6Zkci94/oa6IIHUcueh9esxC0tjvbaPN37hxF23sqF3lg== X-Received: by 2002:a05:6a00:1949:b0:71e:427a:68de with SMTP id d2e1a72fcca58-71ea32215f1mr18320891b3a.24.1729530597934; Mon, 21 Oct 2024 10:09:57 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ec13eb08asm3229424b3a.173.2024.10.21.10.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 10:09:57 -0700 (PDT) Date: Mon, 21 Oct 2024 10:09:56 -0700 From: Stephen Hemminger To: Cc: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra , Subject: Re: [dpdk-dev] [PATCH 2/2] net/cnxk: support rte flow on cn20k Message-ID: <20241021100956.6a034445@hermes.local> In-Reply-To: <20241021040144.974453-2-psatheesh@marvell.com> References: <20241021040144.974453-1-psatheesh@marvell.com> <20241021040144.974453-2-psatheesh@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 21 Oct 2024 09:31:44 +0530 wrote: > From: Satheesh Paul >=20 > Support for rte flow in cn20k. >=20 > Signed-off-by: Satheesh Paul > Reviewed-by: Kiran Kumar K > --- > drivers/net/cnxk/cn10k_ethdev.c | 8 +- > drivers/net/cnxk/cn10k_flow.h | 21 -- > drivers/net/cnxk/cn20k_ethdev.c | 4 + > drivers/net/cnxk/cnxk_ethdev_devargs.c | 10 +- > drivers/net/cnxk/cnxk_flow.c | 10 +- > drivers/net/cnxk/cnxk_flow_wrapper.c | 303 +++++++++++++++++++++++++ > drivers/net/cnxk/cnxk_flow_wrapper.h | 21 ++ > drivers/net/cnxk/meson.build | 10 +- > 8 files changed, 355 insertions(+), 32 deletions(-) > delete mode 100644 drivers/net/cnxk/cn10k_flow.h > create mode 100644 drivers/net/cnxk/cnxk_flow_wrapper.c > create mode 100644 drivers/net/cnxk/cnxk_flow_wrapper.h Compiler erorrs. *Build Failed #2: OS: RHEL94-64 Target: x86_64-native-linuxapp-gcc FAILED: drivers/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_npc_mcam.c.o=20 gcc -Idrivers/libtmp_rte_common_cnxk.a.p -Idrivers -I../drivers -Idrivers/c= ommon/cnxk -I../drivers/common/cnxk -Idrivers/bus/pci -I../drivers/bus/pci = -Ilib/net -I../lib/net -Ilib/ethdev -I../lib/ethdev -Ilib/meter -I../lib/me= ter -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -I= lib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I..= /lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../li= b/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics -I.= ./lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/pci -I../lib/pci -I.= ./drivers/bus/pci/linux -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mem= pool -Ilib/ring -I../lib/ring -Ilib/security -I../lib/security -Ilib/crypto= dev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -fdiagnostics-color=3Dalways = -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -std=3Dc11 -O3= -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonlitera= l -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-ex= terns -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-protot= ypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-= aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOUR= CE -fPIC -march=3Dnative -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_AP= I -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3Dpmd.common.cnxk -MD -M= Q drivers/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_npc_mcam.c.o -MF drive= rs/libtmp_rte_common_cnxk.a.p/common_cnxk_roc_npc_mcam.c.o.d -o drivers/lib= tmp_rte_common_cnxk.a.p/common_cnxk_roc_npc_mcam.c.o -c ../drivers/common/c= nxk/roc_npc_mcam.c ../drivers/common/cnxk/roc_npc_mcam.c: In function =E2=80=98npc_mcam_write_= entry=E2=80=99: ../drivers/common/cnxk/roc_npc_mcam.c:520:70: error: iteration 7 invokes un= defined behavior [-Werror=3Daggressive-loop-optimizations] 520 | cn20k_req->entry_data.kw[i] =3D mcam->mcam_= data[i]; | ~~~~~~~~~~~~~= ~~^~~ ../drivers/common/cnxk/roc_npc_mcam.c:519:31: note: within this loop 519 | for (i =3D 0; i < NPC_CN20K_MCAM_KEY_X4_WORDS; i++)= { cc1: all warnings being treated as errors [794/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_roc_tim.c.o [795/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_roc_utils.c.o [796/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_roc_tim_irq.c.o [797/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_cnxk_telemetry_bphy.c.o [798/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_cnxk_telemetry_npa.c.o [799/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_roc_ree.c.o [800/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_cnxk_utils.c.o [801/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_cnxk_security.c.o [802/3044] Compiling C object drivers/libtmp_rte_common_cnxk.a.p/common_cnx= k_cnxk_telemetry_nix.c.o ninja: build stopped