octeontx2-af: print error message incase of invalid pf mapping
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 25 Aug 2023 10:40:22 +0000 (16:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2023 09:05:56 +0000 (10:05 +0100)
commit17d1368f4f19eec2047c7527e7e606496481f1bf
treeac17da382a4b16ef242f556cbb6689fcd63ddb3d
parent2f387525d484c0eca841b71842e1cd672220c20c
octeontx2-af: print error message incase of invalid pf mapping

During AF driver initialization, it creates a mapping between pf to
cgx,lmac pair. Whenever there is a physical link change, using this
mapping driver forwards the message to the associated netdev.

This patch prints error message incase of cgx,lmac pair is not
associated with any pf netdev.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c