Skip to content
Commit 6bbe00aa authored by Suman Ghosh's avatar Suman Ghosh Committed by Ruiqiang Hao
Browse files

octeontx2-pf: Check for DMAC extraction support before setting DMAC based hardware filter for a VF



commit bb9af399891833acb69817fda336309326dd71f3 from
git@git.assembla.com:cavium/WindRiver.linux.git

As of today, while setting a MAC address of a PF's VF (e.g. ip link set
<pf-netdev> vf 0 mac <mac-address>), it blindly tries to install a DMAC
based hardware filter. But it is possible that the hardware parser profile
does not support DMAC extraction. This patch fixes the same and tries
to add the DMAC filter only if hardware parsing profile supports DMAC
extraction.

Fixes: f0c2982a ("octeontx2-pf: Add support for SR-IOV management functions")
Signed-off-by: default avatarSuman Ghosh <sumang@marvell.com>
Change-Id: I174c110ecee7dbe054c2651553b99925d3888c03
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/123288


Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Tested-by: default avatarsa_ip-toolkits-Jenkins <sa_ip-toolkits-jenkins@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent b538f975
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment