octeontx2-af: Fix devlink unregister
authorRatheesh Kannoth <rkannoth@marvell.com>
Tue, 31 Jan 2023 06:16:59 +0000 (11:46 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Feb 2023 05:22:41 +0000 (21:22 -0800)
commit917d5e04d4dd2bbbf36fc6976ba442e284ccc42d
tree92762c7bc811d6e1234a938bbc30d57bfe31f2e8
parenta2df8463e15c10a8a882090f3d7a760fdb7b189d
octeontx2-af: Fix devlink unregister

Exact match feature is only available in CN10K-B.
Unregister exact match devlink entry only for
this silicon variant.

Fixes: 87e4ea29b030 ("octeontx2-af: Debugsfs support for exact match.")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230131061659.1025137-1-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c