ila: Cache a route in ILA lwt structure
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v12 patches 5 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lwtunnel: Add destroy state operationinclude/ net/ | +16 | 0 replies | |
| 2/2 | ila: Cache a route to translated addressnet/ | +74 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Roopa Prabhu |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 net-next 0/2] ila: Cache a route in ILA lwt structure
Add a dst_cache to ila_lwt structure. This holds a cached route for the translated address. In ila_output we now perform a route lookup after translation and if possible (destination in original route is full 128 bits) we set the dst_cache. Subsequent calls to ila_output can then use the cache to avoid the route lookup.
This eliminates the need to set the gateway on ILA routes as previously was being done. Now we can do somthing like:
./ip route add 3333::2000:0:0:2/128 encap ila 2222:0:0:2 \
csum-mode neutral-map dev eth0 ## No via needed!
Also, add destroy_state to lwt ops. We need this do destroy the dst_cache.
- v2
- Fixed comparisons to fc_dst_len to make comparison against number of bits in data structure not bytes.
- Move destroy_state under build_state (requested by Jiri)
- Other minor cleanup
Tested:
Running 200 TCP_RR streams:
Baseline, no ILA
1730716 tps
102/170/313 50/90/99% latencies
88.11 CPU utilizationUsing ILA in both directions
1680428 tps
105/176/325 50/90/99% latencies
88.16 CPU utilizationTom Herbert (2):
lwtunnel: Add destroy state operation
ila: Cache a route to translated address
include/net/lwtunnel.h | 7 ++--- net/core/lwtunnel.c | 13 ++++++++ net/ipv6/ila/ila_lwt.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 90 insertions(+), 10 deletions(-)
Signature · 1 line
2.9.3