Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sfc: suppress handled MCDI failures when changing the MAC address

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Daniel Pieczko and committed by
David S. Miller
535a6177 7a186f47

+5 -2
+5 -2
drivers/net/ethernet/sfc/ef10.c
··· 3933 3933 efx->net_dev->dev_addr); 3934 3934 MCDI_SET_DWORD(inbuf, VADAPTOR_SET_MAC_IN_UPSTREAM_PORT_ID, 3935 3935 nic_data->vport_id); 3936 - rc = efx_mcdi_rpc(efx, MC_CMD_VADAPTOR_SET_MAC, inbuf, 3937 - sizeof(inbuf), NULL, 0, NULL); 3936 + rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VADAPTOR_SET_MAC, inbuf, 3937 + sizeof(inbuf), NULL, 0, NULL); 3938 3938 3939 3939 efx_ef10_filter_table_probe(efx); 3940 3940 up_write(&efx->filter_sem); ··· 3986 3986 * MCFW do not support VFs. 3987 3987 */ 3988 3988 rc = efx_ef10_vport_set_mac_address(efx); 3989 + } else { 3990 + efx_mcdi_display_error(efx, MC_CMD_VADAPTOR_SET_MAC, 3991 + sizeof(inbuf), NULL, 0, rc); 3989 3992 } 3990 3993 3991 3994 return rc;