Re: udp sendfile & csum_partial work around

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This does not have the same interface as the sendfile.
Also,
struct file_operations {
...
+ 
ssize_t (*udp_sendfile) (struct file *, struct file *, loff_t *, size_t, 
struct sf_hdtr *);

Note the addition on udp_sendfile and the sf_hdtr. Hence the there will
be a new sys_sendfilev which essentially has the same parameters as
sys_sendfile and also sf_hdtr.
This way we need not accumulate the SKBs which accomodate the entire 
file till the user fills in headers.

-Kishore.




David S. Miller wrote:

> Wrong interface, you need to do something like TCP_CORK
> for udp, then the user does a write() of the headers
> then a sendfile() then an uncork.  When the uncork happens
> you push the accumulated SKB to be transmitted.
> 
> 


-- 
Kishore V. Chitrapu
Storigen Systems
(978) 323-4454 x395
kishore.chitrapu@storigen.com

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux