Re: sk_buff handling in packet handler

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Claude Robitaille
Date: Sunday, May 17, 2009 - 10:23 am

Thanks Mark.

very interesting

this helped me but just to get to next problem....

what I am trying to do is to receive frame using a packet handler, 
manipulate it and send a portion of it over a UDP channel. I am using 
sock_sendmsg. Things sort of work but I get some warnings while in 
net_tx_action (via the sendmsg I am guessing) about doing scheduling 
while in atomic and sometime the kernel simply completely crashes. All 
this probably means that using kernel socket functions cannot be used 
from any context.... Any suggestion on how to properly do this? 
Ultimately, I'd like to avoid copying the data so if I could simply send 
an skb to some UDP TX handler would be ideal but if not, what is the 
best approach?

Thanks

Claude

Mark Smith wrote:

-- 
Claude Robitaille
CTO
Accedian Networks
514-764-0119
clauder@accedian.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sk_buff handling in packet handler, Mark Smith, (Sat May 16, 5:55 pm)
Re: sk_buff handling in packet handler, Claude Robitaille, (Sun May 17, 10:23 am)
Re: sk_buff handling in packet handler, Stephen Hemminger, (Sun May 17, 10:38 pm)
Re: sk_buff handling in packet handler, Claude Robitaille, (Tue May 19, 3:41 pm)