Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack))

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel@...>
Date: Monday, June 16, 2008 - 1:16 pm

On Tuesday 10 June 2008, Aggelos Economopoulos wrote:
[...]

What I've got seems to work (I can't easily test the ip_mroute changes), even
though I'm not completely happy with the implementation. You (I don't mean
just Sephe here) can get the changes by pulling the tcpcb branch from the git
repo at git://repo.or.cz/dragonfly/netmp.git or by fetching
http://leaf.dragonflybsd.org/~aggelos/B1-sopt.patch and applying it to HEAD.
Please test in your regular setup and report any errors ("works for me" is
interesting too). This patch does NOT contain any sockbuf changes and should
be quite safe. That said, don't run it on your production boxes yet.

I'd also like to know what the developers think about

int
kva_p(const void *addr)
{
	/* XXX: mapped? */
	return ((unsigned long)KvaStart <= (unsigned long)addr) &&
		((unsigned long)addr < (unsigned long)KvaEnd);
}

do we need such a function? Should it be quick-n-silly like above or
should it check if there is a page mapped on addr as well?

diffstat for the patch is

 kern/uipc_msg.c                 |   45 +++++++++++++++++----
 kern/uipc_socket.c              |   82 ++++++++++++++++++++++++++++++++++++++--
 net/dummynet/ip_dummynet_glue.c |    8 +--
 net/ip_mroute/ip_mroute.c       |   32 +++++++--------
 net/ipfw/ip_fw2.c               |   61 ++++++++++++++---------------
 net/netisr.h                    |    9 ----
 net/netmsg.h                    |    7 +++
 netinet/ip_output.c             |   56 ++++++++++++---------------
 netinet/tcp_usrreq.c            |   21 ++--------
 netinet6/ip6_output.c           |   34 ++++++----------
 sys/protosw.h                   |    5 +-
 sys/socketops.h                 |    2
 sys/socketvar.h                 |    5 ++
 13 files changed, 228 insertions(+), 139 deletions(-)

Aggelos
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
BGL-free net stack, Aggelos Economopoulos, (Tue Apr 15, 7:17 pm)
sockbuf (was Re: BGL-free net stack), Aggelos Economopoulos, (Mon May 5, 1:36 pm)
tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Thu Jun 5, 5:35 pm)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Tue Jun 10, 7:43 am)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Sepherosa Ziehau, (Tue Jun 10, 8:14 am)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Tue Jun 10, 8:28 am)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Sepherosa Ziehau, (Tue Jun 10, 8:46 am)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Tue Jun 10, 8:57 am)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Mon Jun 16, 1:16 pm)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Tue Jun 17, 2:39 pm)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Sun Jun 8, 1:35 pm)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Sun Jun 8, 1:58 pm)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Sun Jun 8, 6:40 pm)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Tue Jun 10, 9:04 am)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Sepherosa Ziehau, (Tue Jun 10, 10:42 am)
Re: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Joerg Sonnenberger, (Tue Jun 10, 11:49 am)
FW: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Jonathan Stuart, (Tue Jun 10, 11:48 am)
Re: FW: tcpcb (was Re: sockbuf (was Re: BGL-free net stack)), Aggelos Economopoulos, (Tue Jun 10, 5:58 pm)
UDP inpcbs and more (was Re: tcpcb etc), Aggelos Economopoulos, (Fri Jun 6, 3:16 pm)
Re: UDP inpcbs and more (was Re: tcpcb etc), Sepherosa Ziehau, (Fri Jun 6, 10:56 pm)
Re: UDP inpcbs and more (was Re: tcpcb etc), Aggelos Economopoulos, (Sun Jun 8, 10:18 am)