OSDN Git Service

octeontx2-af: forward error correction configuration
authorChristina Jacob <cjacob@marvell.com>
Tue, 9 Feb 2021 10:35:25 +0000 (16:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2021 23:19:53 +0000 (15:19 -0800)
commit84c4f9cab4f99e774a8d9bbee299d288bdb2d792
tree5d2be00f46683429b2c694f4ea7a50a960d931c3
parent1fb3ca767529e94efbd770048163a00eba644c1c
octeontx2-af: forward error correction configuration

CGX block supports forward error correction modes baseR
and RS. This patch adds support to set encoding mode
and to read corrected/uncorrected block counters

Adds new mailbox handlers set_fec to configure encoding modes
and fec_stats to read counters and also increase mbox timeout
to accomdate firmware command response timeout.

Along with new CGX_CMD_SET_FEC command add other commands to
sync with kernel enum list with firmware.

Signed-off-by: Christina Jacob <cjacob@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/cgx.h
drivers/net/ethernet/marvell/octeontx2/af/cgx_fw_if.h
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c