pool_setipl for rt bits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pool_setipl for rt bits

David Gwynne-5
ok?

Index: radix.c
===================================================================
RCS file: /cvs/src/sys/net/radix.c,v
retrieving revision 1.52
diff -u -p -r1.52 radix.c
--- radix.c 6 Nov 2015 18:07:57 -0000 1.52
+++ radix.c 30 Aug 2016 09:35:21 -0000
@@ -1225,6 +1225,7 @@ rn_init(unsigned int keylen)
  if (max_keylen == 0) {
  pool_init(&rtmask_pool, sizeof(struct radix_mask), 0, 0, 0,
     "rtmask", NULL);
+ pool_setipl(&rtmask_pool, IPL_SOFTNET);
  }
 
  if (keylen <= max_keylen)
Index: route.c
===================================================================
RCS file: /cvs/src/sys/net/route.c,v
retrieving revision 1.317
diff -u -p -r1.317 route.c
--- route.c 22 Aug 2016 16:53:59 -0000 1.317
+++ route.c 30 Aug 2016 09:35:21 -0000
@@ -189,6 +189,7 @@ route_init(void)
 {
  pool_init(&rtentry_pool, sizeof(struct rtentry), 0, 0, 0, "rtentry",
     NULL);
+ pool_setipl(&rtentry_pool, IPL_SOFTNET);
 
  while (rt_hashjitter == 0)
  rt_hashjitter = arc4random();
@@ -1514,6 +1515,7 @@ rt_timer_init(void)
 
  pool_init(&rttimer_pool, sizeof(struct rttimer), 0, 0, 0, "rttmr",
     NULL);
+ pool_setipl(&rttimer_pool, IPL_SOFTNET);
 
  LIST_INIT(&rttimer_queue_head);
  timeout_set(&rt_timer_timeout, rt_timer_timer, &rt_timer_timeout);

Reply | Threaded
Open this post in threaded view
|

Re: pool_setipl for rt bits

Claudio Jeker-3
On Tue, Aug 30, 2016 at 07:36:09PM +1000, David Gwynne wrote:
> ok?

Needs to be OK or we have a serious issue.
 

> Index: radix.c
> ===================================================================
> RCS file: /cvs/src/sys/net/radix.c,v
> retrieving revision 1.52
> diff -u -p -r1.52 radix.c
> --- radix.c 6 Nov 2015 18:07:57 -0000 1.52
> +++ radix.c 30 Aug 2016 09:35:21 -0000
> @@ -1225,6 +1225,7 @@ rn_init(unsigned int keylen)
>   if (max_keylen == 0) {
>   pool_init(&rtmask_pool, sizeof(struct radix_mask), 0, 0, 0,
>      "rtmask", NULL);
> + pool_setipl(&rtmask_pool, IPL_SOFTNET);
>   }
>  
>   if (keylen <= max_keylen)
> Index: route.c
> ===================================================================
> RCS file: /cvs/src/sys/net/route.c,v
> retrieving revision 1.317
> diff -u -p -r1.317 route.c
> --- route.c 22 Aug 2016 16:53:59 -0000 1.317
> +++ route.c 30 Aug 2016 09:35:21 -0000
> @@ -189,6 +189,7 @@ route_init(void)
>  {
>   pool_init(&rtentry_pool, sizeof(struct rtentry), 0, 0, 0, "rtentry",
>      NULL);
> + pool_setipl(&rtentry_pool, IPL_SOFTNET);
>  
>   while (rt_hashjitter == 0)
>   rt_hashjitter = arc4random();
> @@ -1514,6 +1515,7 @@ rt_timer_init(void)
>  
>   pool_init(&rttimer_pool, sizeof(struct rttimer), 0, 0, 0, "rttmr",
>      NULL);
> + pool_setipl(&rttimer_pool, IPL_SOFTNET);
>  
>   LIST_INIT(&rttimer_queue_head);
>   timeout_set(&rt_timer_timeout, rt_timer_timer, &rt_timer_timeout);

--
:wq Claudio