All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Ratheesh Kannoth <rkannoth@marvell.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	andrew+netdev@lunn.ch, sgoutham@marvell.com, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	Suman Ghosh <sumang@marvell.com>
Subject: Re: [PATCH net-next v2 03/13] octeontx2-af: npc: cn20k: Add default profile
Date: Thu, 8 Jan 2026 17:59:50 +0000	[thread overview]
Message-ID: <20260108175950.GK345651@kernel.org> (raw)
In-Reply-To: <20260107033844.437026-4-rkannoth@marvell.com>

On Wed, Jan 07, 2026 at 09:08:34AM +0530, Ratheesh Kannoth wrote:
> From: Suman Ghosh <sumang@marvell.com>
> 
> Default mkex profile for cn20k silicon. This commit
> changes attribute of objects to may_be_unused to
> avoid compiler warning
> 
> Signed-off-by: Suman Ghosh <sumang@marvell.com>
> Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
> ---
>  .../ethernet/marvell/octeontx2/af/cn20k/npc.c | 170 +++++++++++++++++-
>  .../ethernet/marvell/octeontx2/af/cn20k/npc.h |  18 ++
>  .../marvell/octeontx2/af/npc_profile.h        |  72 ++++----
>  3 files changed, 223 insertions(+), 37 deletions(-)
> 
> diff --git a/drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c b/drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
> index bc52aafeb6a4..8f3f9cb37333 100644
> --- a/drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
> +++ b/drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
> @@ -7,9 +7,13 @@
>  #include <linux/xarray.h>
>  #include <linux/bitfield.h>
>  
> +#include "rvu.h"
> +#include "npc.h"
> +#include "npc_profile.h"
> +#include "rvu_npc_hash.h"
> +#include "rvu_npc.h"
>  #include "cn20k/npc.h"
>  #include "cn20k/reg.h"
> -#include "rvu_npc.h"
>  
>  static struct npc_priv_t npc_priv = {
>  	.num_banks = MAX_NUM_BANKS,
> @@ -21,6 +25,170 @@ static const char *npc_kw_name[NPC_MCAM_KEY_MAX] = {
>  	[NPC_MCAM_KEY_X4] = "X4",
>  };
>  
> +#define KEX_EXTR_CFG(bytesm1, hdr_ofs, ena, key_ofs)		\
> +		     (((bytesm1) << 16) | ((hdr_ofs) << 8) | ((ena) << 7) | \
> +		     ((key_ofs) & 0x3F))
> +
> +static struct npc_mcam_kex_extr npc_mkex_extr_default = {
> +	.mkex_sign = MKEX_SIGN,
> +	.name = "default",
> +	.kpu_version = NPC_KPU_PROFILE_VER,
> +	.keyx_cfg = {
> +		/* nibble: LA..LE (ltype only) + Error code + Channel */
> +		[NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_DYN << 32) | NPC_CN20K_PARSE_NIBBLE_INTF_RX |
> +				 NPC_CN20K_PARSE_NIBBLE_ERRCODE,

Hi Suman and Ratheesh,

NPC_CN20K_PARSE_NIBBLE_ERRCODE isn't defined until the following patch,
so this results in a build failure.

...

  reply	other threads:[~2026-01-08 17:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-07  3:38 [PATCH net-next v2 00/13] NPC HW block support for cn20k Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 01/13] octeontx2-af: npc: cn20k: Index management Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 02/13] octeontx2-af: npc: cn20k: KPM profile changes Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 03/13] octeontx2-af: npc: cn20k: Add default profile Ratheesh Kannoth
2026-01-08 17:59   ` Simon Horman [this message]
2026-01-09  2:17     ` Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 04/13] ocetontx2-af: npc: cn20k: MKEX profile support Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 05/13] octeontx2-af: npc: cn20k: Allocate default MCAM indexes Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 06/13] octeontx2-af: npc: cn20k: Use common APIs Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 07/13] octeontx2-af: npc: cn20k: Prepare for new SoC Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 08/13] octeontx2-af: npc: cn20k: Add new mailboxes for CN20K silicon Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 09/13] octeontx2-af: npc: cn20k: virtual index support Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 10/13] octeontx2-af: npc: cn20k: Allocate MCAM entry for flow installation Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 11/13] octeontx2-pf: cn20k: Add TC rules support Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 12/13] octeontx2-af: npc: cn20k: add debugfs support Ratheesh Kannoth
2026-01-07  3:38 ` [PATCH net-next v2 13/13] octeontx2-af: npc: Use common structures Ratheesh Kannoth

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=20260108175950.GK345651@kernel.org \
    --to=horms@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rkannoth@marvell.com \
    --cc=sgoutham@marvell.com \
    --cc=sumang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.