• Eric Dumazet's avatar
    net: shrinks struct net_device · cd13539b
    Eric Dumazet authored
    commit ab95bfe0 (net: replace hooks in __netif_receive_skb) added
    rx_handler at wrong place, between two cache line aligned objects,
    creating a big hole (a full cache line)
    
    Move rx_handler and rx_handler_data before rx_queue, filling existing
    hole.
    
    Move master field in the cache line(s) used in receive path.
    
    This saves 64 bytes (or L1_CACHE_BYTES), and avoids two possible
    cache misses in receive path.
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    cd13539b
netdevice.h 72.1 KB