Patrick McHardy 380517dead [NETFILTER]: nf_conntrack: avoid duplicate protocol comparison in nf_ct_tuple_equal()
nf_ct_tuple_src_equal() and nf_ct_tuple_dst_equal() both compare the protocol
numbers. Unfortunately gcc doesn't optimize out the second comparison, so
remove it and prefix both functions with __ to indicate that they should not
be used directly.

Saves another 16 byte of text in __nf_conntrack_find() on x86_64:

  nf_conntrack_tuple_taken |  -20 # 320 -> 300, size inlines: 181 -> 161
  __nf_conntrack_find      |  -16 # 267 -> 251, size inlines: 127 -> 115
  __nf_conntrack_confirm   |  -40 # 875 -> 835, size inlines: 570 -> 537
 3 functions changed, 76 bytes removed

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-31 19:27:56 -08:00
..
2008-01-28 14:57:23 -08:00
2008-01-28 15:08:10 -08:00
2007-10-10 16:53:11 -07:00
2007-12-20 13:56:32 -08:00
2007-10-10 16:53:56 -07:00
2007-10-10 16:51:28 -07:00
2008-01-28 15:08:48 -08:00
2008-01-28 15:01:08 -08:00
2008-01-28 14:53:47 -08:00
2008-01-28 15:11:09 -08:00
2007-10-07 23:44:17 -07:00
2008-01-28 15:01:48 -08:00
2008-01-31 19:27:20 -08:00