[][kernel][common][eth][Refactor a traffic stuck issue when changing the SGMII autoneg mode]

[Description]
Refactor a SGMII traffic stuck issue when reloading network config.

Backport the following functions from Linux-6.2 to ensure that when
pause capability or autoneg advertisement changes for the SFP, they
can reconfigure SGMII.
  - phylink_ethtool_ksettings_set()
  - phylink_ethtool_set_pauseparam()

Without this patch, the users may encounter a traffic stuck issue when
they change the SGMII autoneg mode using the ethtool.

[Release-log]
N/A


Change-Id: I2f5222cf7e5bd080b41647bce61cf3c73be52b3f
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8526848
2 files changed