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 [EMAIL PROTECTED]
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to