summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlok Mishra <almishra@marvell.com>2024-09-24 20:54:37 +0500
committerMonendra Singh Kushwaha <kmonendra@marvell.com>2024-10-04 12:43:04 +0000
commit466b350538b3899bc4a25b41f4f7a01deb9019d9 (patch)
tree61a684ad3e92be62df7a2e5e04d13dea196169b0 /src
parentd8d09a9e8ac4c3e04de6ed2af6d553b63aed4829 (diff)
octeon: fix pause flow control for lbk/sdp devicesv24.10-rc2
Pause frame flow control is not supported for LBK (Loopback) and SDP (System DPI Packet Interface Unit) devices. This patch skips the pause flow configuration for these devices. Type: fix Fixes: 53239b4 Signed-off-by: Alok Mishra <almishra@marvell.com> Change-Id: I3096fcef9df4ad59d64bfabb83f91f13813128a8 (cherry picked from commit d8022139ebf5f2cfb0e207b21baf6aa22e908bb9)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dev_octeon/port.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/dev_octeon/port.c b/src/plugins/dev_octeon/port.c
index 1a6058143dd..528683fa3c7 100644
--- a/src/plugins/dev_octeon/port.c
+++ b/src/plugins/dev_octeon/port.c
@@ -64,8 +64,13 @@ oct_port_pause_flow_control_init (vlib_main_t *vm, vnet_dev_port_t *port)
struct roc_nix_rq *rq;
int rrv;
+ /* pause flow control is not supported on SDP/LBK devices */
if (roc_nix_is_sdp (nix) || roc_nix_is_lbk (nix))
- return VNET_DEV_ERR_UNSUPPORTED_DEVICE;
+ {
+ log_notice (dev,
+ "pause flow control is not supported on SDP/LBK devices");
+ return VNET_DEV_OK;
+ }
fc_cfg.type = ROC_NIX_FC_RXCHAN_CFG;
fc_cfg.rxchan_cfg.enable = true;