On Wed, 1 Jul 2020 15:51:25 +0100 Edward Cree wrote:
> 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(), the NIC
>  supports the above (SET_MAC_ENHANCED capability), and regular
>  efx_mcdi_set_mac() fails EPERM, then fall back to efx_mcdi_set_mtu().

Is there no way of checking the permission the function has before
issuing the firmware call?

Reply via email to