On 30/10/17(Mon) 10:32, Peter Hessler wrote:
> :diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
> :index 95c9194efcb..33cc3161bcb 100644
> :--- a/sys/netinet/ip_input.c
> :+++ b/sys/netinet/ip_input.c
> :@@ -1839,5 +1839,5 @@ void
> : ip_send(struct mbuf *m)
> : {
> :     mq_enqueue(&ipsend_mq, m);
> :-    task_add(softnettq, &ipsend_task);
> :+    task_add(net_tq(0), &ipsend_task);
> : }
> 
> I'm only singling out one of them, but the comment applies to all of
> this style.
> 
> What's the motivation to do net_tq(0) here, instead of hashing the
> if_index?

There's no such "rational", we can indeed use `ph_ifidx'.

Reply via email to