• Alan Brady's avatar
    i40evf: fix client notify of l2 params · 01acc73f
    Alan Brady authored
    The current method for notifying clients of l2 parameters is broken
    because we fail to copy the new parameters to the client instance
    struct, we need to do the notification before the client 'open' function
    pointer gets called, and lastly we should set the l2 parameters when
    first adding a client instance.
    
    This patch first introduces the i40evf_client_get_params function to
    prevent code duplication in the i40evf_client_add_instance and the
    i40evf_notify_client_l2_params functions.  We then fix the notify l2
    params function to actually copy the parameters to client instance
    struct and do the same in the *_add_instance' function.  Lastly this
    patch reorganizes the priority in which client tasks fire so that if the
    flag for notifying l2 params is set, it will trigger before the open
    because the client needs these new parameters as part of a client open
    task.
    Signed-off-by: default avatarAlan Brady <alan.brady@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    01acc73f
i40evf_client.c 15.2 KB