Re: [PATCH v2 net-next] octeontx2-af: Add couple of mailbox support.

From: Ratheesh Kannoth

Date: Wed Sep 23 2026 - 00:00:08 EST


On 2026-09-23 at 08:58:16, Ratheesh Kannoth (rkannoth@xxxxxxxxxxx) wrote:
> Add IFACE_GET_INFO and NPC batch flow/stats/features handlers for the
> RVU switch PF, with synchronized NIX context and channel publishing.
>
> IFACE_GET_INFO: report PF/VF channel and queue topology
> NPC_MCAM_FLOW_DEL_N_FREE: delete flows and free MCAM entries in bulk
> NPC_MCAM_GET_MUL_STATS: read MCAM counter stats in bulk
> NPC_MCAM_GET_FEATURES: report supported MCAM features
>
> Rework NIX LF context memory publish and teardown so queue context
> pointers and bitmaps are assigned and cleared under the NIX admin queue
> lock. Publish interface channel fields under rsrc_lock so IFACE_GET_INFO
> can read a consistent snapshot.
>
> Signed-off-by: Ratheesh Kannoth <rkannoth@xxxxxxxxxxx>
>
> ---
>
> v1 -> v2:
> - Drop SWDEV2AF_NOTIFY and the switch skeleton hooks from this patch;
> keep the series focused on the AF mailbox handlers above.
> - Restrict IFACE_GET_INFO to the PAN RVU switch PF (rvu_is_switch_pcifunc())
> and return -EPERM for other callers.
> - Hold rsrc_lock while building the IFACE_GET_INFO topology snapshot.
> - Publish and clear NIX interface channel fields under rsrc_lock.
> - Publish NIX LF queue context pointers and bitmaps under the admin queue
> lock; propagate assign failures and free partial allocations on error.
> - Fix nix_get_tx_link() for representor and LBK VF devices.
> - Propagate NPC flow deletion failures from npc_delete_flow() and the
> bulk delete/free handler; ratelimit bulk handler error logs.
> - Read NPC MCAM features under mcam->lock and clear mul-stats response
> on entry verification failure.
> https://lore.kernel.org/netdev/20260918050021.1359606-1-rkannoth@xxxxxxxxxxx/

Please ignore this version as it was sent with an incorrect commit message and changelog.
Apologies for the noise.

pw-bot: changes-requested