From: Rahul Bhansali <rbhansali@marvell.com>
To: Jerin Jacob <jerinjacobk@gmail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>,
Kiran Kumar Kokkilagadda <kirankumark@marvell.com>,
Sunil Kumar Kori <skori@marvell.com>,
Satha Koteswara Rao Kottidi <skoteshwar@marvell.com>,
Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Subject: RE: [EXT] Re: [PATCH 2/4] net/cnxk: restructure for cn10k datapath
Date: Tue, 17 Jan 2023 10:24:13 +0000 [thread overview]
Message-ID: <CO6PR18MB3844FD21657848AC6C4E9234B8C69@CO6PR18MB3844.namprd18.prod.outlook.com> (raw)
In-Reply-To: <CALBAE1NT9xnbTtBeJ5DrWuAr1azhk0usoh6BYHsyN3vQFZpJLA@mail.gmail.com>
> -----Original Message-----
> From: Jerin Jacob <jerinjacobk@gmail.com>
> Sent: Tuesday, January 17, 2023 2:22 PM
> To: Rahul Bhansali <rbhansali@marvell.com>
> Cc: dev@dpdk.org; Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>;
> Kiran Kumar Kokkilagadda <kirankumark@marvell.com>; Sunil Kumar Kori
> <skori@marvell.com>; Satha Koteswara Rao Kottidi
> <skoteshwar@marvell.com>; Jerin Jacob Kollanukkaran <jerinj@marvell.com>
> Subject: [EXT] Re: [PATCH 2/4] net/cnxk: restructure for cn10k datapath
>
> External Email
>
> ----------------------------------------------------------------------
> On Wed, Dec 21, 2022 at 2:46 PM Rahul Bhansali <rbhansali@marvell.com>
> wrote:
> >
> > Restructure for separate cn10k datapath functionality to reduce
> > recompilation time in case of any changes in control path.
> >
> > New cnxk_ethdev_dp.h and cn10k_rxtx.h files are created to have
> > macros, functions as required for datapath with minimal dependency on
> > roc changes.
> >
> > Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
>
> > index 422d2e4e1c..94ffcb74a8 100644
> > --- a/drivers/net/cnxk/tx/cn10k/tx_96_111_vec.c
> > +++ b/drivers/net/cnxk/tx/cn10k/tx_96_111_vec.c
> > @@ -2,9 +2,12 @@
> > * Copyright(C) 2022 Marvell.
> > */
>
> >
> > diff --git a/drivers/net/cnxk/tx/cn10k/tx_96_111_vec_mseg.c
> > b/drivers/net/cnxk/tx/cn10k/tx_96_111_vec_mseg.c
> > index dbefae02e0..ad1d124968 100644
> > --- a/drivers/net/cnxk/tx/cn10k/tx_96_111_vec_mseg.c
> > +++ b/drivers/net/cnxk/tx/cn10k/tx_96_111_vec_mseg.c
> > @@ -2,9 +2,12 @@
> > * Copyright(C) 2022 Marvell.
> > */
> >
> > -#include "cn10k_ethdev.h"
> > #include "cn10k_tx.h"
> >
> > +#ifdef _ROC_API_H_
> > +#error "roc_api.h is included"
> > +#endif
>
> 1) There is build error[1], Please rebase to next-net-mrvl and fix the issue
Ack, will rebase and check the build.
> 2) Change 3/4 patch git comment subject to align with other patches
Ack.
3)Is above
> 3 lines need to be added in everyfile, How about a)Include this on parent file .
> Say cn10k_rx.h ?
> b)Add a macro for this
cn10k_rx.h has all the fastpath Modes macro which are used in non-datapath also for callback assignments etc. Hence not used at parent file.
>
>
>
> [1]
> FAILED:
> drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_rx_cn10k_rx_112_127_vec_mseg.c.o
> ccache gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -
> Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -
> I../config -Ilib/eal/include -I../lib/eal/include -Ilib/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../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -
> I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/e t -Ilib/mbuf -
> I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -
> I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -
> Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -
> I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -
> I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -
> Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool /cnxk -
> I../drivers/mempool/cnxk -fdiagnostics-color=always
> -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include
> rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -
> Wformat-security -Wmissing-declaration s -Wmissing-prototypes -Wnested-
> externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-
> prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-
> packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length -bounds -
> D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -
> DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -
> Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ
> drivers/libtmp_rte_net_cnxk.a.p/net_
> cnxk_rx_cn10k_rx_112_127_vec_mseg.c.o -MF
> drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_rx_cn10k_rx_112_127_vec_mseg.c.o
> .d
> -o
> drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_rx_cn10k_rx_112_127_vec_mseg.c.o
> -c ../drivers/net/cnxk/rx/cn10k/rx_112_127_ve
> c_mseg.c
> ../drivers/net/cnxk/rx/cn10k/rx_112_127_vec_mseg.c:8:2: error: #error
> "roc_api.h is included"
> 8 | #error "roc_api.h is included"
>
> > +
> > #define T(name, sz, flags) \
> > NIX_TX_XMIT_VEC_MSEG(cn10k_nix_xmit_pkts_vec_mseg_##name, sz,
> > flags)
> >
> > --
> > 2.25.1
> >
next prev parent reply other threads:[~2023-01-17 10:24 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-21 9:15 [PATCH 1/4] common/cnxk: " Rahul Bhansali
2022-12-21 9:15 ` [PATCH 2/4] net/cnxk: " Rahul Bhansali
2023-01-17 8:52 ` Jerin Jacob
2023-01-17 10:24 ` Rahul Bhansali [this message]
2022-12-21 9:15 ` [PATCH 3/4] crypto/cnxk: include only files that are used Rahul Bhansali
2022-12-21 9:15 ` [PATCH 4/4] event/cnxk: restructure for cn10k datapath Rahul Bhansali
2023-01-18 10:26 ` [PATCH v2 1/4] common/cnxk: " Rahul Bhansali
2023-01-18 10:27 ` [PATCH v2 2/4] net/cnxk: " Rahul Bhansali
2023-01-25 4:58 ` Jerin Jacob
2023-01-25 6:22 ` [EXT] " Rahul Bhansali
2023-01-18 10:27 ` [PATCH v2 3/4] crypto/cnxk: " Rahul Bhansali
2023-01-18 10:27 ` [PATCH v2 4/4] event/cnxk: " Rahul Bhansali
2023-01-25 11:31 ` [PATCH v3 1/4] common/cnxk: " Rahul Bhansali
2023-01-25 11:31 ` [PATCH v3 2/4] crypto/cnxk: " Rahul Bhansali
2023-02-07 12:13 ` Jerin Jacob
2023-01-25 11:31 ` [PATCH v3 3/4] net/cnxk: " Rahul Bhansali
2023-01-25 11:31 ` [PATCH v3 4/4] event/cnxk: " Rahul Bhansali
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=CO6PR18MB3844FD21657848AC6C4E9234B8C69@CO6PR18MB3844.namprd18.prod.outlook.com \
--to=rbhansali@marvell.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=jerinjacobk@gmail.com \
--cc=kirankumark@marvell.com \
--cc=ndabilpuram@marvell.com \
--cc=skori@marvell.com \
--cc=skoteshwar@marvell.com \
/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).