From owner-freebsd-net@FreeBSD.ORG Thu Jan 30 18:40:44 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 ABF44B87; Thu, 30 Jan 2014 18:40:44 +0000 (UTC) Received: from mail-qc0-x22c.google.com (mail-qc0-x22c.google.com [IPv6:2607:f8b0:400d:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5B9B21909; Thu, 30 Jan 2014 18:40:44 +0000 (UTC) Received: by mail-qc0-f172.google.com with SMTP id c9so5627888qcz.31 for ; Thu, 30 Jan 2014 10:40:43 -0800 (PST) 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=uiFIhVVAE6V9Nvpvo/jiWNAsVutM+eIUHimqf4JIi8M=; b=i/WGkaTck6R5QkObIVBYWjQKlR+76HfqpcZjJHsW0JRsVaX/yzwkZCegd1dSdDvwBm 1qlm0fY/M23u+SspaMJFURsFvQ3tZG96S9SxZv540bcPcTHqaByErk8N6gb+mC9ZrvX4 D+JOE6dns5n6xwEhAhK5u1LKeLEYyVuxbD5D9ztEAyiGMpM7mOJRvDH7uxtatYGjUsvH 8/jWRMazBOrNJkf9t9w3OLvTARaeIx4X/4OmrMD94PMz+AfmqGZ3jnQeqiPPziLXN9II 3YBs66a0lJQWC23bHne7h1lhacSkIYpWDeTRu63KmsZi+5ymrISnNRJQetPedS8ZdDgG fMYw== MIME-Version: 1.0 X-Received: by 10.140.96.180 with SMTP id k49mr22717122qge.4.1391107243141; Thu, 30 Jan 2014 10:40:43 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Thu, 30 Jan 2014 10:40:43 -0800 (PST) Date: Thu, 30 Jan 2014 10:40:43 -0800 X-Google-Sender-Auth: _UpKv-12afRRAdwR0t63cd57tik Message-ID: Subject: Re: (removing mbuf flowid setup in flowtable.c) From: Adrian Chadd To: FreeBSD Net , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jan 2014 18:40:44 -0000 On 30 January 2014 07:18, Adrian Chadd wrote: > Hi, > > I'd like to disable the code in flowtable.c that assigns the mbuf flowid. > > I'd like to ensure that any mbuf flowid that's set is (eventually) > going to be consistently toeplitz in the future (to match what NICs > are doing on the RX side) and this may cause the flowid to be set to > something completely different. > > I've only done some light production testing with this so far, to no > visible ill effects. > > What do people think? Someone pointed out privately that doing this would mean that UDP flows without flow ids would suddenly not have flowids any longer and thus wouldn't use multiple output queues. So, I'll leave this alone for now until I can import the toeplitz hash code into -HEAD and add an option to tag outbound udp frames with this particular flowid hash. Thanks, -a > Thanks, > > > -a > > > Index: sys/net/flowtable.c > =================================================================== > --- sys/net/flowtable.c (revision 261001) > +++ sys/net/flowtable.c (working copy) > @@ -1102,10 +1102,12 @@ > if (af == AF_INET6) > fle = flowtable_lookup_mbuf6(ft, m); > #endif > +#if 0 > if (fle != NULL && m != NULL && (m->m_flags & M_FLOWID) == 0) { > m->m_flags |= M_FLOWID; > m->m_pkthdr.flowid = fle->f_fhash; > } > +#endif > return (fle); > }