problems when playing with prism2_tx and prism2_transmit_cb

Antonio Vilei antonio.vilei at unile.it
Tue May 27 05:29:37 EDT 2003


Hello

> instead of sending a sk_buff through prism2_tx, the
> kernel calls my function where i store the != ptrs on
> sk_buff in queues based on the TOS field of the IP
> header

Maybe it could be useful to let the kernel handle the QoS stuff for you.
Please take a look at
"Chapter 9. Queueing Disciplines for Bandwidth Management" of the "Linux
Advanced Routing & Traffic Control HOWTO"
http://lartc.org/howto/lartc.qdisc.html
This way you won't need to modify hard_start_xmit.

Regards,
Antonio

----- Original Message -----
From: "Ilyes Gouta" <igouta at yahoo.fr>
To: <hostap at shmoo.com>
Sent: Tuesday, May 27, 2003 11:05 AM
Subject: problems when playing with prism2_tx and prism2_transmit_cb


> Hi everybody !
>
> currently i'm rewriting the HostAP hard_start_xmit
> function, prism2_tx to perform some traffic
> differentiation through queueing .. Here is the basic
> idea :
>
> 1) instead of sending a sk_buff through prism2_tx, the
> kernel calls my function where i store the != ptrs on
> sk_buff in queues based on the TOS field of the IP
> header
>
> 2) to poll that queues, i added some lines in
> prism2_transmit_cb (located in hostap_hw.c) to fetch
> my ptrs and then do the effective send by invoking the
> prism2_tx function.. (prism2_transmit_cb is used to
> report Tx completion and to update the ptr on the next
> buffer (the idx stuff) [FIXME])
>
> The modified code compiles fine but when running the
> stuff, the system hangs/crashs ... (interrupt context
> ?, bad spinlocks use ?, ...)
>
> i spent 4 days looking to fix that problem but i
> didn't find a clue..
>
> Any help will be really nice !
> Regards.
>
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
>





More information about the HostAP mailing list