X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC4043858025
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1651514224;
	bh=GSNXt7SLIwh/V4yxSI16JcQazvVoBCRbPBUAoO5S0MY=;
	h=Date:From:To:Subject:References:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 Reply-To:Cc:From;
	b=fGk8vx6lASWgsNxoZ4zSLa3aO8JnKe3V0yjkNfgbK5r3bjc1jPcvA3hM+OPtzLWdy
	 ucWV4feb30KwAALx2Yo3mYoxTFFI0oTwwuoX4zcZRc1t5QUi2YPsA6VmU2JDvqaIZB
	 74tB+9Gw6sbhs2Dr4rSOTyxu/lqvSGxWY/dMevXI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1A0B13857825
Authentication-Results: sourceware.org;
 dmarc=fail (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com
Date: Mon, 2 May 2022 19:54:58 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Supporting new Windows UDP offload features
Message-ID: <YnAa8sGkWeVIdHnt@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com, Rony Ross <rony.ross@gmail.com>
References: <CAMnBwJRfAxbFiz4LSdX4m2P_gKcMbzS=GYfUHLTiyUdMqi2Jfg@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CAMnBwJRfAxbFiz4LSdX4m2P_gKcMbzS=GYfUHLTiyUdMqi2Jfg@mail.gmail.com>
X-Provags-ID: V03:K1:o+ADf1EIekZTrYLRahHaHDWE/BdvuhGxnFCJt6Yit+wwAd8EF37
 F6nyvxs5c2w6cUYU2nWTdNGrqGdAgae3UmkomCvfmN/8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_HELO_NONE, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Cc: Rony Ross <rony.ross@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On May  2 17:11, Rony Ross wrote:
> Hello,
> 
> Starting from Windows 10 version 2004, Windows supports UDP
> segmentation offload and UDP receive coalescing as described in
> https://docs.microsoft.com/en-us/windows-hardware/drivers/network/udp-segmentation-offload-uso-#ndis-interface-changes
> and in https://docs.microsoft.com/en-us/windows/win32/winsock/ipproto-udp-socket-options
> It seems that in order to support UDP segmentaion offload and UDP
> receive coalescing, cygwin needs to add support for UDP_SEND_MSG_SIZE
> and UDP_RECV_MAX_COALESCED_SIZE socket options for IPPROTO_UDP
> 
> Could you please add it?

Reading about those, it looks like they might be drop-in solutions
to implement the Linux UDP_SEGMENT and UDP_GRO socket options.
Knowing Windows however, I'm sure there's a twist somewhere...

> If so, could you please estimate when it will be available?

In the hopes they work the same way, I can make the UDP_SEGMENT and
UDP_GRO socket options available in the next major Cygwin version.

Availability, probably at some point late this year. Or later.
We're not at a point where this is safe to say.

However, test versions can be made available rather soon, I think.


Corinna

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
