• Dirk van der Merwe's avatar
    nfp: refactor nfp_app_reprs_set · 51ccc37d
    Dirk van der Merwe authored
    The criteria that reprs cannot be replaced with another new set of reprs
    has been removed. This check is not needed since the only use case that
    could exercise this at the moment, would be to modify the number of
    SRIOV VFs without first disabling them. This case is explicitly
    disallowed in any case and subsequent patches in this series
    need to be able to replace the running set of reprs.
    
    All cases where the return code used to be checked for the
    nfp_app_reprs_set function have been removed.
    As stated above, it is not possible for the current code to encounter a
    case where reprs exist and need to be replaced.
    Signed-off-by: default avatarDirk van der Merwe <dirk.vandermerwe@netronome.com>
    Signed-off-by: default avatarSimon Horman <simon.horman@netronome.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    51ccc37d
nfp_app.c 3.48 KB