Re: udp sendfile & csum_partial work around

From: Kishore Chitrapu (
Date: Fri Sep 06 2002 - 12:31:27 EST

This does not have the same interface as the sendfile.
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.


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

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to More majordomo info at

This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:02 EST