Re: TC

Saravanan Radhakrishnan (rsarav@ittc.ukans.edu)
Thu, 22 Apr 1999 09:05:27 -0500 (CDT)


Hi:
Some answers:

> 2) Where is the skb->priority assigned ?

This is set from the application with the help of a setsockopt
call. The corresponding implementation in the kernel is in
net/ipv4/ip_sockglue.c in function ip_setsockopt(). The option
used for this is IP_TOS.

>
> 3) How is the q->dequeue() initiated... is it from the net_bh ?

Two ways:
1. From dev_queue_xmit, qdisc_wakeup (in net/pkt_sched.h) to
qdisc_restart(in net/sched/sch_generic.c), which calls q_dequeue.

2. From net_bh, qdisc_run_queues (in sch_generic.c) is called, which
in turn calls qdisc_restart....

Best,
Sarav

>
> Thanks in advance,
> Pramodh
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.rutgers.edu
>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu