From owner-freebsd-net@FreeBSD.ORG Sun May 6 20:34:07 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F98C1065673 for ; Sun, 6 May 2012 20:34:07 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id DDC1C8FC12 for ; Sun, 6 May 2012 20:34:06 +0000 (UTC) Received: by lbon10 with SMTP id n10so4157826lbo.13 for ; Sun, 06 May 2012 13:34:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=IQmWGq+lFZWWQBRQ9YyVqFFdNvfxybT3AWoBuknRQvs=; b=DhE2cidcETSgIM80tNqNZQ/K3MLhjbx3AwTCpzi01CLGyM3chrOPfxS4c3MIVe/7Tg RPbUoRxtY+YQoZDa5sa0ORqrE5D2kvbsHmyrtGv3nl1QqfyyWD9ZkvLZ3QFxFdx4gSe5 XGlDjmxdAYT/dMQGO4+ruJWgOr6hdvCn6PaFaSKatauxfiec6/TdAH9PMK8m4wTedM7K xWBcL+qPaxs2+D9pY95wRv1xwwOgAqMYQ5w0qhAldxP0cNbij3NIdv2P7Fi6ID0HmWY7 r+ITHhP8cN7PjCjfFiiIL5JY4s1nme+i9m09hIeXNwpeYyaYvJ6SvIPWx0dLOT45fejo t7Ag== Received: by 10.152.114.106 with SMTP id jf10mr12316099lab.16.1336336445850; Sun, 06 May 2012 13:34:05 -0700 (PDT) Received: from zont-osx.local (ppp95-165-135-86.pppoe.spdop.ru. [95.165.135.86]) by mx.google.com with ESMTPS id pv14sm16754418lab.2.2012.05.06.13.34.04 (version=SSLv3 cipher=OTHER); Sun, 06 May 2012 13:34:05 -0700 (PDT) Message-ID: <4FA6E03B.2000706@zonov.org> Date: Mon, 07 May 2012 00:34:03 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: pyunyh@gmail.com References: <20120427230400.GB17009@michelle.cdnetworks.com> In-Reply-To: <20120427230400.GB17009@michelle.cdnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmjd+j9uNdTDzDocLu7iWYP6SmtCKeToPuNLz708UUe0jx6+zLsUO4DEKgTdHyv9oJSupYB Cc: freebsd-net@freebsd.org, davidch@freebsd.org Subject: Re: bce: jumbo not working since r218423 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: Sun, 06 May 2012 20:34:07 -0000 On 4/28/12 3:04 AM, YongHyeon PYUN wrote: > On Thu, Apr 26, 2012 at 03:23:19PM +0400, Andrey Zonov wrote: >> Hi, >> >> I found that jumbo frames don't work after r218423 with bce driver. >> This happens because controller doesn't do reinitialization when MTU >> is changed. Attached patch solves this problem. >> > > Could you verify whether attached diff addresses the issue? > Sorry, I couldn't setup my box yet due to some other reasons so the > diff was not tested. This patch also works. > >> I also don't understand why sysctl hw.bce.loose_rx_mtu doesn't respect >> with tunnable hw.bce.strict_rx_mtu. Is there any reason to give them >> different names? >> > > It may be an oversight. Personally I don't see any reason except > debugging purpose to limit RX frame size to interface MTU. It makes > sense when controller send frames but it should be able to receive > any sized RX frames(if controller allows it). Dropping RX frames > that are bigger than interface MTU would break path MTU discovery > of remote host that uses bigger MTU. I only mean different names for the same thing. -- Andrey Zonov