net: hns3: add protection when get SFP speed as 0
In some case, the MAC speed get from hardware maybe 0, it should not be set to mac->speed. Signed-off-by: NGuojia Liao <liaoguojia@huawei.com> Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录