octeontx2-pf: ethtool: Implement get_fec_stats
authorHariprasad Kelam <hkelam@marvell.com>
Mon, 5 Dec 2022 07:05:20 +0000 (12:35 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 7 Dec 2022 11:24:29 +0000 (12:24 +0100)
commitb441c4ac5ea37251d6acabe679215a828025004b
treefbfe9d58b242a708993bb51bdcf2723d1cfbbf29
parentb9d0fedc6234011d67f6e2ba0ae1a8de6beca010
octeontx2-pf: ethtool: Implement get_fec_stats

This patch registers a callback for get_fec_stats such that
FEC stats can be queried from the below command

"ethtool -I --show-fec eth0"

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c