<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I wish to transmit a skb from a kernel module.For 
this I've created a skb and filled all the necessary fields and the called the 
called dev-&gt;hard_start_xmit of the underlying driver and this way I'm able to 
transmit sucessfully.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Now here I've to do memcpy the data every time in 
the skb-&gt;data before transmitting which increases my overhead If I've to 
transmit a lot of data. Is there any way in which I can give a pointer to my 
buffer for the data part of the packet and the headers I can fill 
manually.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Assuming that low level driver supports scatter and 
gather IO and it can take non-linear skb. What is the procedure to do so. I 
suppose there is some shared socket info by which can be done.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please advice if this is feasible and what are the 
steps that need to be done to do so. I only need to avoid the data copy and my 
headers are prepared in advance and there are not much changes in the header 
part of the packet. This packet is an UDP packet.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanx in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Akhilesh</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>