commit | af3c38d3fb7c3003842974b1de454ecebbd8bc83 | [log] [tgz] |
---|---|---|
author | Edward Cree <ecree@solarflare.com> | Thu Jul 02 17:27:35 2020 +0100 |
committer | David S. Miller <davem@davemloft.net> | Thu Jul 02 14:47:39 2020 -0700 |
tree | b8db8a4a6138ad6f8bf9107ada30dcbcbfd149ce | |
parent | e44f65fd666c73944d6f2462cea0559ce5508721 [diff] |
sfc: support setting MTU even if not privileged to configure MAC fully Unprivileged functions (such as VFs) may set their MTU by use of the 'control' field of MC_CMD_SET_MAC_EXT, as used in efx_mcdi_set_mtu(). If calling efx_ef10_mac_reconfigure() from efx_change_mtu(), and the NIC supports the above (SET_MAC_ENHANCED capability), use it rather than efx_mcdi_set_mac(). Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>