• Eric Dumazet's avatar
    rps: consistent rxhash · b249dcb8
    Eric Dumazet authored
    In case we compute a software skb->rxhash, we can generate a consistent
    hash : Its value will be the same in both flow directions.
    
    This helps some workloads, like conntracking, since the same state needs
    to be accessed in both directions.
    
    tbench + RFS + this patch gives better results than tbench with default
    kernel configuration (no RPS, no RFS)
    
    Also fixed some sparse warnings.
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b249dcb8
dev.c 142 KB