From owner-freebsd-net@FreeBSD.ORG Tue Jul 22 08:02:41 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DEB29F10; Tue, 22 Jul 2014 08:02:41 +0000 (UTC) Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8FFFA28D1; Tue, 22 Jul 2014 08:02:41 +0000 (UTC) Received: by mail-qg0-f43.google.com with SMTP id a108so6648514qge.30 for ; Tue, 22 Jul 2014 01:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=mPZNMhTTGxlm9J/V9d02a7W59eW07vX2g5HuQosyiMk=; b=sR7KVaSvwaTDgivftK9IUXkyQZOCXYLCdC66ta0s78MD8BntDwTkMAzhLhGF5VTtMI MJM/Yp/jhAPcpuBRYro94Z5plgTDdeRytdf/oi1nwRy/buOc3AKkqg5mgrcru4c9AzlD p2blMeeqxJu3ZQ0dzRUPPb4sDpALciKOq79O++97oIo159wK4WElUlGHx2v9fda8o6eX cU9fxuP/Oy3TuXYPyZUgzlGxkfh/b+Hx2fuXRpkDXWl/BZBAJkKIY+Z3zd+IQwTjJ7W/ p94V4sq9lzoEzQ6MUW2I7w4PRUcJo5wXhW1dOXiVmaaudGCCH2Se2K5SnwCQc9thSOLV Qseg== MIME-Version: 1.0 X-Received: by 10.224.156.145 with SMTP id x17mr34137783qaw.49.1406016160188; Tue, 22 Jul 2014 01:02:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Tue, 22 Jul 2014 01:02:40 -0700 (PDT) Date: Tue, 22 Jul 2014 01:02:40 -0700 X-Google-Sender-Auth: JvCqFbRyxP-Yi9KyslREGjFtYKU Message-ID: Subject: [rfc] UDP RSS transmit/receive message options; ip_output() inp flowid changes From: Adrian Chadd To: FreeBSD Net , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 08:02:42 -0000 Hi! I'd appreciate a review of this: http://people.freebsd.org/~adrian/rss/20140722-rss-udp-1.diff The overview: * Add a new flag to ip_output() to instruct it to not override the flowid with the inp cached value. Some forms of UDP transmit will break this. * Add new IP socket options to receive flowid and rss bucket information with the UDP datagram (via recvmsg.) * Add awareness in the send path of those same messages so the transmit path can avoid doing a hash calculation. The software hash calculations aren't done yet in the UDP transmit path - I'll work on those next. There are some comments which won't make it into the final committed patch. Bonus points if you get this far and see what they are. -a