From: Julian Anastasov Date: Tue, 4 Sep 2012 11:03:15 +0000 (+0000) Subject: tcp: add generic netlink support for tcp_metrics X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~215 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d23ff701643a4a725e2c7a8ba2d567d39daa29ea;p=pandora-kernel.git tcp: add generic netlink support for tcp_metrics Add support for genl "tcp_metrics". No locking is changed, only that now we can unlink and delete entries after grace period. We implement get/del for single entry and dump to support show/flush filtering in user space. Del without address attribute causes flush for all addresses, sadly under genl_mutex. v2: - remove rcu_assign_pointer as suggested by Eric Dumazet, it is not needed because there are no other writes under lock - move the flushing code in tcp_metrics_flush_all v3: - remove synchronize_rcu on flush as suggested by Eric Dumazet Signed-off-by: Julian Anastasov Signed-off-by: David S. Miller --- Reading git-diff-tree failed