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>
         * 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--;