lkml.org 
[lkml]   [2014]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.10 11/56] igb: do a reset on SR-IOV re-init if device is down
    Date
    3.10-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Stefan Assmann <sassmann@kpanic.de>

    commit 76252723e88681628a3dbb9c09c963e095476f73 upstream.

    To properly re-initialize SR-IOV it is necessary to reset the device
    even if it is already down. Not doing this may result in Tx unit hangs.

    Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
    Tested-by: Aaron Brown <aaron.f.brown@intel.com>
    Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/ethernet/intel/igb/igb_main.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/drivers/net/ethernet/intel/igb/igb_main.c
    +++ b/drivers/net/ethernet/intel/igb/igb_main.c
    @@ -7229,6 +7229,8 @@ static int igb_sriov_reinit(struct pci_d

    if (netif_running(netdev))
    igb_close(netdev);
    + else
    + igb_reset(adapter);

    igb_clear_interrupt_scheme(adapter);




    \
     
     \ /
      Last update: 2014-07-26 23:01    [W:4.099 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site