forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
....@@ -704,7 +704,9 @@
704704 hns3_get_ksettings(h, cmd);
705705 break;
706706 case HNAE3_MEDIA_TYPE_FIBER:
707
- if (module_type == HNAE3_MODULE_TYPE_CR)
707
+ if (module_type == HNAE3_MODULE_TYPE_UNKNOWN)
708
+ cmd->base.port = PORT_OTHER;
709
+ else if (module_type == HNAE3_MODULE_TYPE_CR)
708710 cmd->base.port = PORT_DA;
709711 else
710712 cmd->base.port = PORT_FIBRE;