OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2/6][INET]: Consolidate inet(6)_hash_connect.
Re: [PATCH 2/6][INET]: Consolidate inet(6)_hash_connect. [message #26759 is a reply to message #26756] Thu, 31 January 2008 13:39 Go to previous messageGo to previous message
Arnaldo Carvalho de M is currently offline  Arnaldo Carvalho de M
Messages: 27
Registered: October 2007
Junior Member
Em Thu, Jan 31, 2008 at 04:18:51PM +0300, Pavel Emelyanov escreveu:
> Arnaldo Carvalho de Melo wrote:
> > Em Thu, Jan 31, 2008 at 03:32:09PM +0300, Pavel Emelyanov escreveu:
> >> These two functions are the same except for what they call
> >> to "check_established" and "hash" for a socket.
> >>
> >> This saves half-a-kilo for ipv4 and ipv6.
> > 
> > Good stuff!
> > 
> > Yesterday I was perusing tcp_hash and I think we could have the hashinfo
> > pointer stored perhaps in sk->sk_prot.
> > 
> > That way we would be able to kill tcp_hash(), inet_put_port() could
> > receive just sk, etc.
> 
> But each proto will still have its own hashfn, so proto's 
> callbacks will be called to hash/unhash sockets, so this will 
> give us just one extra dereference. No?
> 
> > What do you think?
> 
> Hmmm... Even raw_hash, etc may become simpler. On the other hand
> maybe this is a good idea, but I'm not very common with this code
> yet to foresee such things in advance... I think that we should
> try to prepare a patch and look, but if you have smth ready, then
> it's better to review your stuff first.

gimme some minutes

- Arnaldo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OLS Mini-Summit Proposal for Containers
Next Topic: [PATCH][NETFILTER]: Ipv6-related xt_hashlimit compilation fix.
Goto Forum:
  


Current Time: Mon Aug 11 22:42:48 GMT 2025

Total time taken to generate the page: 0.32106 seconds