Main reasons to remove this hash generation per record are:
(1) It is not enabled in default.
(2) IPv6 path does not have this.
(3) TCP blackbox can do a better job.
(4) TCP header fields can be used if needed.
The man page is updated as well.
Differential D39835
siftr: remove barely used hash generation per record cc on Apr 26 2023, 3:26 PM. Authored by Tags None Referenced Files
Details Main reasons to remove this hash generation per record are: (2) IPv6 path does not have this. (3) TCP blackbox can do a better job. (4) TCP header fields can be used if needed. The man page is updated as well. Tested in Emulab testbed: after:
Diff Detail
Event TimelineComment Actions What do we gain from removing this feature? My understanding is that if it is not enabled, it does not have a substantial CPU overhead. I have no idea who uses siftr and if they use this feature... Comment Actions This feature is not used AFAIK. We have less carbon print (at least 10 chars of "0x00000000") per record after removing this feature. Comment Actions OK, so I understand that it makes sense not to print it, if the feature is not used. But I have (in general) a hard time to tell, which features are used and which are not... So how do you know that you are not removing a feature considered important by some people? Comment Actions Let's assume this is a dead feature, or the original authors do not need it any longer. Also, a hash value is hard to use for a packet identification. I will consider tcp.seq, tcp.ack, and tcp.len in the tcphdr for such identification. Besides, the inconsistency between IPv4 and IPv6 for this feature does not make sense. Comment Actions On a second thought, if there is really someone who uses this feature. That also means this user knows how/where to add this missing code to study TCP, under the BSD license. Comment Actions Some more thinking about this at my end: Since the hash algorithm is not documented, someone who uses this feature must be able to read the kernel code and write the corresponding application code. Such people can handle the removal of the code. |