From: Paul Greenwalt <[email protected]>

E810/E82X devices do not support RDMA on 4+ ports configurations. This is
not true for E830 devices.

During device capability discovery do not apply RDMA limitation when
the device is E830.

Signed-off-by: Paul Greenwalt <[email protected]>
Signed-off-by: Soumyadeep Hore <[email protected]>
---
 drivers/net/intel/ice/base/ice_common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/intel/ice/base/ice_common.c 
b/drivers/net/intel/ice/base/ice_common.c
index 7d8f677c99..934e0c2d5b 100644
--- a/drivers/net/intel/ice/base/ice_common.c
+++ b/drivers/net/intel/ice/base/ice_common.c
@@ -2668,6 +2668,8 @@ ice_recalc_port_limited_caps(struct ice_hw *hw, struct 
ice_hw_common_caps *caps)
                caps->maxtc = 4;
                ice_debug(hw, ICE_DBG_INIT, "reducing maxtc to %u (based on 
#ports)\n",
                          caps->maxtc);
+               if (hw->mac_type == ICE_MAC_E830)
+                       return;
        }
 }
 
-- 
2.47.1

Reply via email to