What is wrong in udp_sendpages which is including header and trailers as a part of the
arguments? I don't quite understand the problem in the interface other than it is including
header and trailers as a part of sendfile call just like BSD-style sendfilev call.
Using CORKing for UDP is nothing but buffering UDP packets which is not conventional for UDP sockets. A write on UDP sockets do need to result in transmitting the packets to the network.
The patch is a initial attempt to provide a UDP-based zero-copy path and also solving IP frags
checksum issues in sending non-linear UDP skbs.
From: David S. Miller [mailto:firstname.lastname@example.org]
Sent: Friday, September 06, 2002 11:58 AM
To: Kishore Chitrapu
Cc: email@example.com; Larry Sendlosky; Ravi Chamarti;
Subject: Re: udp sendfile & csum_partial work around
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.
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:02 EST