mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 08:50:17 -04:00
i40e: Add appropriate error message logged for incorrect duplex setting
Nothing logged in dmesg for attempting to set incorrect duplex. Add appropriate error message logged for incorrect duplex setting. Signed-off-by: Alicja Kowalska <alicjax.kowalska@intel.com> Signed-off-by: Kamil Maziarz <kamil.maziarz@intel.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
committed by
Tony Nguyen
parent
6d4d584a7e
commit
30872d834b
@@ -1287,8 +1287,10 @@ static int i40e_set_link_ksettings(struct net_device *netdev,
|
||||
* trying to set something that we do not support.
|
||||
*/
|
||||
if (memcmp(©_ks.base, &safe_ks.base,
|
||||
sizeof(struct ethtool_link_settings)))
|
||||
sizeof(struct ethtool_link_settings))) {
|
||||
netdev_err(netdev, "Only speed and autoneg are supported.\n");
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
while (test_and_set_bit(__I40E_CONFIG_BUSY, pf->state)) {
|
||||
timeout--;
|
||||
|
||||
Reference in New Issue
Block a user