From: Willem de Bruijn Date: Mon, 19 Aug 2013 20:40:22 +0000 (-0400) Subject: packet: restore packet statistics tp_packets to include drops X-Git-Tag: v3.11-rc7~11^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bcdeaff5ed544704a9a691d4aef0adb3f9c5b8f;p=pandora-kernel.git packet: restore packet statistics tp_packets to include drops getsockopt PACKET_STATISTICS returns tp_packets + tp_drops. Commit ee80fbf301 ("packet: account statistics only in tpacket_stats_u") cleaned up the getsockopt PACKET_STATISTICS code. This also changed semantics. Historically, tp_packets included tp_drops on return. The commit removed the line that adds tp_drops into tp_packets. This patch reinstates the old semantics. Signed-off-by: Willem de Bruijn Acked-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed