Re: moving struct bpf_if to bpf.c

2015-04-20 Thread Gleb Smirnoff
On Mon, Apr 20, 2015 at 07:52:33PM +, Mark Johnston wrote: M> On Mon, Apr 20, 2015 at 10:26:18PM +0300, Gleb Smirnoff wrote: M> > On Sat, Apr 18, 2015 at 02:08:56PM -0700, Mark Johnston wrote: M> > M> At the moment, bpf.h defines struct bpf_if differently depending on M> > M> whether BPF_INTERN

Re: Congestion Control Modification

2015-04-20 Thread Karlis Laivins
Hi, Thank you very much for such a comprehensive description of how to properly create a loadable Kernel module, this does the trick - I was able to create the module successfully, load it into Kernel and set it as the congestion control algorithm used via sysctl net.inet.tcp.cc.algorithm=new (new

Re: Congestion Control Modification

2015-04-20 Thread grenville armitage
Hi, On 04/18/2015 16:59, Karlis Laivins wrote: Hello, I have read an interesting publication about a proposed modification of TCP Congestion Control algorithm that would allow to improve it (the CC) by dynamic bandwidth estimation. The idea seems so interesting that I would like to try to imple

Re: moving struct bpf_if to bpf.c

2015-04-20 Thread Mark Johnston
On Mon, Apr 20, 2015 at 10:26:18PM +0300, Gleb Smirnoff wrote: > On Sat, Apr 18, 2015 at 02:08:56PM -0700, Mark Johnston wrote: > M> At the moment, bpf.h defines struct bpf_if differently depending on > M> whether BPF_INTERNAL is #defined. This causes problems with CTF, as it > M> results in a sort

Re: moving struct bpf_if to bpf.c

2015-04-20 Thread Gleb Smirnoff
On Sat, Apr 18, 2015 at 02:08:56PM -0700, Mark Johnston wrote: M> At the moment, bpf.h defines struct bpf_if differently depending on M> whether BPF_INTERNAL is #defined. This causes problems with CTF, as it M> results in a sort of bifurcation within the type graph: CTF sees two M> different struct