• David Lebrun's avatar
    ipv6: sr: use dst_cache in seg6_input · af4a2209
    David Lebrun authored
    We already use dst_cache in seg6_output, when handling locally generated
    packets. We extend it in seg6_input, to also handle forwarded packets, and avoid
    unnecessary fib lookups.
    
    Performances for SRH encapsulation before the patch:
    Result: OK: 5656067(c5655678+d388) usec, 5000000 (1000byte,0frags)
      884006pps 7072Mb/sec (7072048000bps) errors: 0
    
    Performances after the patch:
    Result: OK: 4774543(c4774084+d459) usec, 5000000 (1000byte,0frags)
      1047220pps 8377Mb/sec (8377760000bps) errors: 0
    Signed-off-by: default avatarDavid Lebrun <david.lebrun@uclouvain.be>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    af4a2209
seg6_iptunnel.c 10 KB