[PATCH v2 02/24] net/cnxk: implementing eswitch device

Jerin Jacob jerinjacobk at gmail.com
Thu Jan 4 13:30:30 CET 2024


On Wed, Dec 20, 2023 at 12:53 AM Harman Kalra <hkalra at 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 <hkalra at marvell.com>
> ---
>  drivers/net/cnxk/cnxk_eswitch.c | 465 ++++++++++++++++++++++++++++++++
>  drivers/net/cnxk/cnxk_eswitch.h | 103 +++++++
>  drivers/net/cnxk/meson.build    |   1 +
>  3 files changed, 569 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..51110a762d
> --- /dev/null
> +++ b/drivers/net/cnxk/cnxk_eswitch.c
> @@ -0,0 +1,465 @@
> +/* SPDX-License-Identifier: BSD-3-Clause
> + * Copyright(C) 2023 Marvell.

Change to 2024 for new files in this series.


> +static int
> +eswitch_dev_nix_flow_ctrl_set(struct cnxk_eswitch_dev *eswitch_dev)
> +{

> +
> +       rc = roc_nix_fc_mode_set(nix, mode_map[ROC_NIX_FC_FULL]);
> +       if (rc)
> +               return rc;
> +
> +       return rc;


same as return roc_nix_fc_mode_set(nix, mode_map[ROC_NIX_FC_FULL]);


More information about the dev mailing list