Skip to content

: Locking and simplification for TFRC TX history

Gerrit Renker dccp 1 version In review

Get series with b4
b4 am 200706111341.18240@strip-the-willow

Versions newest first

  1. v1 Latest6 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6: Remove unused fields in packet history structurenet/dccp/ccids/ccid3.c net/dccp/ccids/lib/packet_history.h+3 -131 reply
2/6: Migrate TX history to singly-linked listnet/dccp/ccids/ccid3.h net/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h+25 -101 reply
3/6: Migrate to new naming scheme, using macro to declare cachenet/dccp/ccids/ccid3.c net/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h+24 -385 replies
4/6: History allocation / deallocation routinesnet/dccp/ccids/ccid3.c net/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h+44 -641 reply
5/6: Add history query/lookup functionnet/dccp/ccids/lib/packet_history.c net/dccp/ccids/lib/packet_history.h+29 -194 replies
6/6: Update TX RTT sampling to use ktime_tnet/dccp/ccids/ccid3.c+9 -161 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6]: Locking and simplification for TFRC TX history

This third bundle (3 more to come in this patch set) is largely self-contained does the following for the TFRC history

* implements locking
* removes unused fields (smaller footprint of structure)
* simplifies to use singly-linked list (suggestion by Arnaldo)

Little is added here, many lines are removed.

Patch #1: Removes two fields, _sent, and _rtt, which are referenced nowhere in the code.

Patch #2: Migration to singly-linked TX history -- introduction of data structures.

Patch #3: Introduction of consistent naming scheme for functions and fields located
in the dccp_tfrc_lib module: all such objects now start with `tfrc_' prefix.

Patch #4: Allocation (constructor) and de-allocation (destructor) routines for TFRC TX history.

Patch #5: Querying function to look up the send time, lock-protected against concurrent write.

Patch #6: Update CCID3 TX RTT sampling to use ktime_t
(Ian, this is one of the dependencies: upgrading to ktime_t could only be done
after introducing the TX history; ccid3_hc_tx_update_x() is resolved subsequently.