octeontx2-af: Enable hardware timestamping for VFs
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 11 Oct 2023 12:15:51 +0000 (17:45 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Oct 2023 23:58:38 +0000 (16:58 -0700)
commit5ee0a3bd150918512f28c55073b0d782f674320c
treea9571750800b4fa49d366922f6d658197dace018
parentc47ed22c544336632448025c53b8687fdd95b558
octeontx2-af: Enable hardware timestamping for VFs

Currently for VFs, mailbox returns ENODEV error when hardware timestamping
enable is requested. This patch fixes this issue. Modified this patch to
return EPERM error for the PF/VFs which are not attached to CGX/RPM.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20231011121551.1205211-1-saikrishnag@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c