The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3b5f95d7bd20e366d720a47a79c451ae037a3ae1

commit 3b5f95d7bd20e366d720a47a79c451ae037a3ae1
Author:     John Baldwin <[email protected]>
AuthorDate: 2021-09-13 16:57:54 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2021-09-13 16:57:54 +0000

    ctld: Disable TCP DDP for connection sockets.
    
    cxgbei is not able to offload PDU processing for a socket using TCP
    DDP offload.
    
    Sponsored by:   Chelsio Communications
---
 usr.sbin/ctld/ctld.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index 7af1d88da44a..c37181ff00d0 100644
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -2178,6 +2178,10 @@ conf_apply(struct conf *oldconf, struct conf *newconf)
                            &sockbuf, sizeof(sockbuf)) == -1)
                                log_warn("setsockopt(SO_SNDBUF) failed "
                                    "for %s", newp->p_listen);
+                       if (setsockopt(newp->p_socket, SOL_SOCKET, SO_NO_DDP,
+                           &one, sizeof(one)) == -1)
+                               log_warn("setsockopt(SO_NO_DDP) failed "
+                                   "for %s", newp->p_listen);
                        error = setsockopt(newp->p_socket, SOL_SOCKET,
                            SO_REUSEADDR, &one, sizeof(one));
                        if (error != 0) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to