net/ice: fix the mac type of E822 and E823
Checks
Commit Message
E822 and E823 get the wrong mac type, which prevents
the ddp package from loading correctly.
This commit fixes the mac type of E822 and E823.
Fixes: 084e64e6b600 ("net/ice/base: set MAC type for E823C device")
Cc: stable@dpdk.org
Signed-off-by: Kaiwen Deng <kaiwenx.deng@intel.com>
---
drivers/net/ice/base/ice_common.c | 2 ++
1 file changed, 2 insertions(+)
Comments
> -----Original Message-----
> From: Deng, KaiwenX <kaiwenx.deng@intel.com>
> Sent: Friday, June 16, 2023 10:06 AM
> To: dev@dpdk.org
> Cc: stable@dpdk.org; Yang, Qiming <qiming.yang@intel.com>; Zhou, YidingX
> <yidingx.zhou@intel.com>; Deng, KaiwenX <kaiwenx.deng@intel.com>;
> Zhang, Qi Z <qi.z.zhang@intel.com>; Venkataramanan, Anirudh
> <anirudh.venkataramanan@intel.com>
> Subject: [PATCH] net/ice: fix the mac type of E822 and E823
>
> E822 and E823 get the wrong mac type, which prevents the ddp package
> from loading correctly.
>
> This commit fixes the mac type of E822 and E823.
>
> Fixes: 084e64e6b600 ("net/ice/base: set MAC type for E823C device")
> Cc: stable@dpdk.org
>
> Signed-off-by: Kaiwen Deng <kaiwenx.deng@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi
@@ -167,6 +167,8 @@ static enum ice_status ice_set_mac_type(struct ice_hw *hw)
case ICE_DEV_ID_E823C_QSFP:
case ICE_DEV_ID_E823C_SFP:
case ICE_DEV_ID_E823C_SGMII:
+ hw->mac_type = ICE_MAC_GENERIC;
+ break;
case ICE_DEV_ID_E824S:
case ICE_DEV_ID_E825C_BACKPLANE:
case ICE_DEV_ID_E825C_QSFP: