octeontx2-pf: Fix ethtool support for SDP representors
authorHariprasad Kelam <hkelam@marvell.com>
Mon, 12 May 2025 06:29:01 +0000 (11:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2025 09:37:20 +0000 (10:37 +0100)
commit314007549d89adebdd1e214a743d7e26edbd075e
tree6c6e4e549abb8a7bc1a136547e1e1e8311ff16f9
parent9d8a99c5a7c7f4f7eca2c168a4ec254409670035
octeontx2-pf: Fix ethtool support for SDP representors

The hardware supports multiple MAC types, including RPM, SDP, and LBK.
However, features such as link settings and pause frames are only available
on RPM MAC, and not supported on SDP or LBK.

This patch updates the ethtool operations logic accordingly to reflect
this behavior.

Fixes: 2f7f33a09516 ("octeontx2-pf: Add representors for sdp MAC")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c