Octeontx2-af: Add programmed macaddr to RVU pfvf
authorHariprasad Kelam <hkelam@marvell.com>
Sun, 20 Jul 2025 16:36:35 +0000 (22:06 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Jul 2025 13:36:39 +0000 (15:36 +0200)
commitdd47fc6769340536d0d451bfe0793440f630a73f
tree777aa4a530db8c466861c07d1757e0989fce8550
parent2094200b5f77e6710f9594571889f64f31966de1
Octeontx2-af: Add programmed macaddr to RVU pfvf

Octeontx2/CN10k MAC block supports DMAC filters. DMAC filters
can be installed on the interface through ethtool.

When a user installs a DMAC filter, the interface's MAC address
is implicitly added to the filter list. To ensure consistency,
this MAC address must be kept in sync with the pfvf->mac_addr field,
which is used to install MAC-based NPC rules.

This patch updates the pfvf->mac_addr field with the programmed MAC
address and also enables VF interfaces to install DMAC filters.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250720163638.1560323-2-hkelam@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c