From: Ilpo Järvinen Date: Thu, 9 Aug 2007 12:14:46 +0000 (+0300) Subject: [TCP]: Move sack_ok access to obviously named funcs & cleanup X-Git-Tag: v2.6.24-rc1~1454^2~816 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e60402d0a909ca2e6e2fbdf9ed004ef0fae36d33;p=pandora-kernel.git [TCP]: Move sack_ok access to obviously named funcs & cleanup Previously code had IsReno/IsFack defined as macros that were local to tcp_input.c though sack_ok field has user elsewhere too for the same purpose. This changes them to static inlines as preferred according the current coding style and unifies the access to sack_ok across multiple files. Magic bitops of sack_ok for FACK and DSACK are also abstracted to functions with appropriate names. Note: - One sack_ok = 1 remains but that's self explanary, i.e., it enables sack - Couple of !IsReno cases are changed to tcp_is_sack - There were no users for IsDSack => I dropped it Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller --- Reading git-diff-tree failed