• Edward Cree's avatar
    net: ipv4: listify ip_rcv_finish · 5fa12739
    Edward Cree authored
    ip_rcv_finish_core(), if it does not drop, sets skb->dst by either early
     demux or route lookup.  The last step, calling dst_input(skb), is left to
     the caller; in the listified case, we split to form sublists with a common
     dst, but then ip_sublist_rcv_finish() just calls dst_input(skb) in a loop.
    The next step in listification would thus be to add a list_input() method
     to struct dst_entry.
    
    Early demux is an indirect call based on iph->protocol; this is another
     opportunity for listification which is not taken here (it would require
     slicing up ip_rcv_finish_core() to allow splitting on protocol changes).
    Signed-off-by: default avatarEdward Cree <ecree@solarflare.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5fa12739
ip_input.c 16.8 KB