On Wed, Feb 28, 2024 at 12:46 AM Harman Kalra <hka...@marvell.com> wrote:
>
> Eswitch device is a parent or base device behind all the representors,
> acting as transport layer between representors and representees
>
> Signed-off-by: Harman Kalra <hka...@marvell.com>
> ---
>  drivers/net/cnxk/cnxk_eswitch.c | 378 ++++++++++++++++++++++++++++++++
>  drivers/net/cnxk/cnxk_eswitch.h | 103 +++++++++
>  drivers/net/cnxk/meson.build    |   1 +
>  3 files changed, 482 insertions(+)
>  create mode 100644 drivers/net/cnxk/cnxk_eswitch.c
>  create mode 100644 drivers/net/cnxk/cnxk_eswitch.h
>
> diff --git a/drivers/net/cnxk/cnxk_eswitch.c b/drivers/net/cnxk/cnxk_eswitch.c
> new file mode 100644
> index 0000000000..c4ea3063ae
> --- /dev/null
> +++ b/drivers/net/cnxk/cnxk_eswitch.c
> @@ -0,0 +1,378 @@
> +/* SPDX-License-Identifier: BSD-3-Clause
> + * Copyright(C) 2024 Marvell.
> + */
> +
> +#include <cnxk_eswitch.h>
> +
> +#define CNXK_NIX_DEF_SQ_COUNT 512
> +
> +static int
> +cnxk_eswitch_dev_remove(struct rte_pci_device *pci_dev)


FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_eswitch.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../l
ib/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/log -I../lib/log -Ilib/metrics
-I../lib/metrics -Ilib/telemetry -I../lib/t
elemetry -Ilib/net -I../lib/net -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 -Idriver
s/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/dmadev -I../lib/dmadev
-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 -std=c11
-O2 -g -include rte_config.h -Wcast-qual -Wde
precated -Wformat -Wformat-nonliteral -Wformat-security
-Wmissing-declarations -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 -mrtm
-DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation
-flax-vector-conversions -Wno-strict-ali
asing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ
drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_eswitch.c.o -MF
drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_eswitch.c.o.d -o
drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_eswitch.c.o -
c ../drivers/net/cnxk/cnxk_eswitch.c
../drivers/net/cnxk/cnxk_eswitch.c: In function ‘cnxk_eswitch_dev_remove’:
../drivers/net/cnxk/cnxk_eswitch.c:10:48: error: unused parameter
‘pci_dev’ [-Werror=unused-parameter]
   10 | cnxk_eswitch_dev_remove(struct rte_pci_device *pci_dev)
      |                         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
cc1: all warnings being treated as errors

Reply via email to