On Thu, Sep 27, 2018 at 11:30:09PM +0200, Hrvoje Popovski wrote:
> On 27.9.2018. 18:34, Alexandr Nedvedicky wrote:
> > Mentioning parallelism: there is yet another change you need to perform
> > in order to get more pf_test() instances running. Currently there
> > is only single input task, which processes inbound packets. In order
> > to allow more input tasks one has to change NET_TASKQ constant found
> > in net/if.c. Patch below tells kernel to use two input tasks:
> 
> shouldn't this be - Patch below tells kernel to use four input tasks?

    absolutely correct, it should be four. The patch below makes kernel
    to use 4 input tasks.

regards
sashan
> 
> 
> > --------8<---------------8<---------------8<------------------8<--------
> > diff --git a/sys/net/if.c b/sys/net/if.c
> > index 78d7d3f3af6..87fca3921f1 100644
> > --- a/sys/net/if.c
> > +++ b/sys/net/if.c
> > @@ -232,7 +232,7 @@ int ifq_congestion;
> > 
> >  int             netisr;
> > 
> > -#define        NET_TASKQ       1
> > +#define        NET_TASKQ       4
> >  struct taskq   *nettqmp[NET_TASKQ];
> > 
> >  struct task if_input_task_locked = TASK_INITIALIZER(if_netisr, NULL);
> > --------8<---------------8<---------------8<------------------8<--------
> 

Reply via email to