• Alexander Duyck's avatar
    igb: Clean-up page reuse code · 95dd44b4
    Alexander Duyck authored
    This patch cleans up the page reuse code getting it into a state where all
    the workarounds needed are in place as well as cleaning up a few minor
    oversights such as using __free_pages instead of put_page to drop a locally
    allocated page.
    
    It also cleans up how we clear the descriptor status bits.  Previously they
    were zeroed as a part of clearing the hdr_addr.  However the hdr_addr is a
    64 bit field and 64 bit writes can be a bit more expensive on on 32 bit
    systems.  Since we are no longer using the header split feature the upper
    32 bits of the address no longer need to be cleared.  As a result we can
    just clear the status bits and leave the length and VLAN fields as-is which
    should provide more information in debugging.
    Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@redhat.com>
    Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    95dd44b4
igb_main.c 215 KB