net: hns: bug fix about restart auto-negotiation
When set auto-negotiation off and duplex half, if run "ethtool -r ethX"
on port with phy, then the port will be failed to work. It should
forbid to start auto-negotiation when auto-negotiate is off. This
patch add the limited condition.
Reported-by: Jinchuang Tian <firstname.lastname@example.org>
Signed-off-by: Daode Huang <email@example.com>
Reviewed-by: Yisen Zhuang <firstname.lastname@example.org>
Reviewed-by: lipeng <email@example.com>
Signed-off-by: Salil Mehta <firstname.lastname@example.org>
Signed-off-by: David S. Miller <email@example.com>
1 file changed