• A
    ixgbe: Simplify logic for ethtool loopback frame creation and testing · 3832b26e
    Alexander Duyck 提交于
    This change makes it a bit easier to do the loopback frame creating and
    testing.  Previously we were doing an and to drop the last bit, and then
    dividing the frame_size by 2 in order to get locations for frame bytes and
    testing.  Instead we can simplify it by just shifting the register one bit
    to the right and using that for the frame offsets.
    
    This change also replaces all instances of rx_buffer_info with just
    rx_buffer since that is closer to the name of the actual structure being
    used and can save a few extra characters.
    
    In addition I have updated the logic for cleaning up a test frame so that
    we pass an rx_buffer instead of the sk_buff.  The main motivation behind
    this is changes that will replace the sk_buff with just a page in the
    future.
    Signed-off-by: NAlexander Duyck <alexander.h.duyck@intel.com>
    Tested-by: NStephen Ko <stephen.s.ko@intel.com>
    Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
    3832b26e
ixgbe_ethtool.c 77.4 KB