• David S. Miller's avatar
    Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 834d9649
    David S. Miller authored
    Jeff Kirsher says:
    
    ====================
    40GbE Intel Wired LAN Driver Updates 2016-09-22
    
    This series contains updates to i40e and i40evf only.
    
    Sridhar fixes link state event handling by updating the carrier and
    starts/stops the Tx queues based on the link state notification from PF.
    
    Brady fixes an issue where a user defined RSS hash key was not being
    set because a user defined indirection table is not supplied when changing
    the hash key, so if an indirection table is not supplied now, then a
    default one is created and the hash key is correctly set.  Also fixed
    an issue where when NPAR was enabled, we were still using pf->mac_seid
    to perform the dump port query. Instead, go through the VSI to determine
    the correct ID to use in either case.
    
    Mitch provides one fix where a conditional return code was reversed, so
    he does a "switheroo" to fix the issue.
    
    Carolyn has two fixes, first fixes an issue in the virt channel code,
    where a return code was not checked for NULL when applicable.  Second,
    fixes an issue where we were byte swapping the port parameter, then
    byte swapping it again in function execution.
    
    Colin Ian King fixes a potential NULL pointer dereference.
    
    Bimmy changes up i40evf_up_complete() to be void since it always returns
    success anyways, which allows cleaning up of code which checked the
    return code from this function.
    
    Alex fixed an issue where the driver was incorrectly assuming that we
    would always be pulling no more than 1 descriptor from each fragment.
    So to correct this, we just need to make certain to test all the way to
    the end of the fragments as it is possible for us to span 2 descriptors
    in the block before us so we need to guarantee that even the last 6
    descriptors have enough data to fill a full frame.
    
    v2: dropped patches 1-3, 10 and 12 from the original series since Or
        Gerlitz pointed out several areas of improvement in the implementation
        of the VF Port representor netdev.  Sridhar is re-working the series
        for later submission.
    ====================
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    834d9649
i40e_virtchnl_pf.c 84.7 KB