From owner-freebsd-net@FreeBSD.ORG Sun Sep 1 20:45:58 2013 Return-Path: Delivered-To: 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 ESMTP id 930BD9CA; Sun, 1 Sep 2013 20:45:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A40F624CB; Sun, 1 Sep 2013 20:45:57 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id p60so824734wes.28 for ; Sun, 01 Sep 2013 13:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ttI8uk4Qrp0LVP9AwHqevDQngsRuFRoNKH5U5ZHlUCs=; b=tgJksMKrZfnylKBn2LldHUZefduOZqTbvNqGsM4beYtbb1nMJf7yD/4eQR77LMxZSY AnNILaT3AWyINUucY0Dsxcc9PM92LCdxxswmOxxZp8VNCawrL1gSsFY7XiL9ofDUSgW5 2bEUSkp25ld3sqHmpj6/bdckoK7DL4OpnMNLpFMjpxk17C4JlFtDpW2LRu4FaME+yoiI gJ5avWMupLUNb+lg84hj+Wg5dc7AlGA715VYhf9qGGRTMRlI/0yYZQ944QvCBZLrKMLl pK7uadWZWzrIiid2fQEKyocddMLfM2v2Xa/PcI8d110Krm1tvxjewWYurKIMUtEYNkYz dQ/w== MIME-Version: 1.0 X-Received: by 10.194.21.131 with SMTP id v3mr2364060wje.44.1378068355923; Sun, 01 Sep 2013 13:45:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.146.2 with HTTP; Sun, 1 Sep 2013 13:45:55 -0700 (PDT) In-Reply-To: <5222F661.1090601@ipfw.ru> References: <5222F661.1090601@ipfw.ru> Date: Sun, 1 Sep 2013 13:45:55 -0700 X-Google-Sender-Auth: jXdfGbnCMHrX24KDTuAK3w4ja1M Message-ID: Subject: Re: Flow ID, LACP, and igb From: Adrian Chadd To: "Alexander V. Chernikov" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Jack F Vogel , "Justin T. Gibbs" , Alan Somers , "net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Sep 2013 20:45:58 -0000 > Not sure about igb, but ixgbe (according to advanced RX descriptor > format, 7.1.6.2 @ 82599 datasheet) can provide 'real' RSS value which > can be used in m_flowid instead of NIC queue id. > > (And, by the way, another RSS-related problem: > there are cases when setting flowid does more harm, for example - > PPPoE frames always being received at Q0. > Partially this can be solved by analyzing RSS type from the same RX > descriptor format (e.g. don't set flowid for RSS type 0x0), but there > are other cases like GRE tunneling (where you probably want to perform > deeper inspection in SW). > > So, can we have some kind of per-NIC sysctl disabling setting flowid > on given port? > > (Yes, this should be in some kind of `ethtool` binary but we still > don't have it..) > ) > What specifically are you asking for? Disabling the flowid tagging of mbufs? Or changing the LACP hashing? You can configure LACP to not use the flowid from the NIC and do the hashing yourself. -adrian