From owner-freebsd-net@FreeBSD.ORG Thu Aug 2 12:19:46 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85CA41065670 for ; Thu, 2 Aug 2012 12:19:46 +0000 (UTC) (envelope-from venkatduvvuru.ml@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3F1B28FC1A for ; Thu, 2 Aug 2012 12:19:45 +0000 (UTC) Received: by qaat11 with SMTP id t11so1258559qaa.13 for ; Thu, 02 Aug 2012 05:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=aP5yHvcr2m/V3d1131oSAwObbNF+q9VzPm+05Z3yopo=; b=lVRKZFzWfKRKDE3/rhOtgE/Bkh8TeP84NvJauRCSkGNA0h1H0vS/guK1tJtWaylaIT YnZNmQ3iLDtQ54CyE3AaXIMYiZ3HpqfXBj1O3YUJJ7x+ZdbQUM3OBxno/nWRa7H3MsZ4 ywmmbvB9ttNWYtTX5wB3YNTGnkYeSBfFydxZcAM8w7iRyhf/LBFInZVtq9mZ4s3n6Z/j RwQPWgfSk8z6c0jLTC0WdkRboAPpbBv4VHvV6mk4k3FfavFdjwC8ZF7CgAQ4aFHlZzKt k6gtp0ArmpVuhHzX4VbBO31onEmswd2FZBFhy7K0tCAOu83Jgjq8zXv9foEmWsTKSKvM ZS5w== MIME-Version: 1.0 Received: by 10.60.12.234 with SMTP id b10mr36113475oec.72.1343909984640; Thu, 02 Aug 2012 05:19:44 -0700 (PDT) Received: by 10.76.8.99 with HTTP; Thu, 2 Aug 2012 05:19:44 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Aug 2012 17:49:44 +0530 Message-ID: From: Venkat Duvvuru To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: IPv6 multi queue transmit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 02 Aug 2012 12:19:46 -0000 Folks - any inputs? /Venkat On Tue, Jul 31, 2012 at 6:52 PM, Venkat Duvvuru wrote: > Hi, > I have a couple of questions related to flowid for IPv6. Please clarify. > > 1. Why is the below code (ip_output) absent for ip6_output? This is > causing the ipv6 traffic to always flow in just one queue. > > if (inp != NULL) { > INP_LOCK_ASSERT(inp); > M_SETFIB(m, inp->inp_inc.inc_fibnum); > if (inp->inp_flags & (INP_HW_FLOWID|INP_SW_FLOWID)) { > m->m_pkthdr.flowid = inp->inp_flowid; > m->m_flags |= M_FLOWID; > } > } > 2. Why "fle" is NULL after enabling FLOWTABLE for IPv6 > > net/flowtable.c > if (af == AF_INET6) > { > fle = flowtable_lookup_mbuf6(ft, m); > if (fle != NULL && m != NULL && (m->m_flags & M_FLOWID) == > 0) { > m->m_flags |= M_FLOWID; > m->m_pkthdr.flowid = fle->f_fhash; > } > } > > /Venkat >