[PATCH v2 54/70] net/ice/base: add generic MAC with 3K signature segment
Qi Zhang
qi.z.zhang at intel.com
Mon Aug 15 09:31:50 CEST 2022
Define new type id ICE_MAC_GENERIC_3k in ice_mac_type enum, to
distinguish devices which use RSA-3K/SHA-384 segment signature type.
Use 3k signinig type for E824S device.
Signed-off-by: Grzegorz Nitka <grzegorz.nitka at intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
---
drivers/net/ice/base/ice_common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c
index c3024dd0b7..44592d20bf 100644
--- a/drivers/net/ice/base/ice_common.c
+++ b/drivers/net/ice/base/ice_common.c
@@ -192,7 +192,8 @@ static enum ice_status ice_set_mac_type(struct ice_hw *hw)
*/
bool ice_is_generic_mac(struct ice_hw *hw)
{
- return hw->mac_type == ICE_MAC_GENERIC;
+ return (hw->mac_type == ICE_MAC_GENERIC ||
+ hw->mac_type == ICE_MAC_GENERIC_3K);
}
/**
--
2.31.1
More information about the dev
mailing list