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 <[email protected]>
Change-Id: I3096fcef9df4ad59d64bfabb83f91f13813128a8
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;