DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jerin Jacob <jerinjacobk@gmail.com>
To: Rahul Bhansali <rbhansali@marvell.com>
Cc: dev@dpdk.org, Nithin Dabilpuram <ndabilpuram@marvell.com>,
	 Kiran Kumar K <kirankumark@marvell.com>,
	Sunil Kumar Kori <skori@marvell.com>,
	 Satha Rao <skoteshwar@marvell.com>,
	jerinj@marvell.com
Subject: Re: [PATCH 2/4] net/cnxk: restructure for cn10k datapath
Date: Tue, 17 Jan 2023 14:22:14 +0530	[thread overview]
Message-ID: <CALBAE1NT9xnbTtBeJ5DrWuAr1azhk0usoh6BYHsyN3vQFZpJLA@mail.gmail.com> (raw)
In-Reply-To: <20221221091549.967801-2-rbhansali@marvell.com>

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
2) Change 3/4 patch git comment subject to align with other patches
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



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

  reply	other threads:[~2023-01-17  8:52 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 [this message]
2023-01-17 10:24     ` [EXT] " Rahul Bhansali
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=CALBAE1NT9xnbTtBeJ5DrWuAr1azhk0usoh6BYHsyN3vQFZpJLA@mail.gmail.com \
    --to=jerinjacobk@gmail.com \
    --cc=dev@dpdk.org \
    --cc=jerinj@marvell.com \
    --cc=kirankumark@marvell.com \
    --cc=ndabilpuram@marvell.com \
    --cc=rbhansali@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).