From owner-freebsd-net@freebsd.org Fri May 27 07:23:03 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 678B5B4BC1A for ; Fri, 27 May 2016 07:23:03 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 30F1E1D84 for ; Fri, 27 May 2016 07:23:03 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-ig0-x22b.google.com with SMTP id ww4so103354231igb.1 for ; Fri, 27 May 2016 00:23:03 -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; bh=HU0eRMDXIAYfzzHTNWt3nXYgZWMp1YctKXQP8am165o=; b=N3RsM/8eKWHRD0lmq1ujmIPbNYJFLJ0UGsKtEc/fp7nn54GEo28CNw4+O2XtagBn2N 6/H6qm4SEgz0R88jvr2FZ5C2EvOW//Cn99ZbFWwCRjKd7HpJzKa0heWF9K7Wm6RZvvou HF7NqNUqS4FkCFR3wR0DrI5Q64BORxxwBHWgIMXJp1D4Wy/wNcRbHfhIEVT+RIti+1/d 5wDXnjL7lSjFQ4mPUpGV3rdZFLDNxiRUzFEkYc2MO7WyuCi+gOmkI7DHvZqkH20hFm2L In9/4TxN3c6B4XyK5KjQsmu0C7Oy4olv4WC0mfvKgz9Uk68lofGx6tMq2adB5pXB+xan jr+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=HU0eRMDXIAYfzzHTNWt3nXYgZWMp1YctKXQP8am165o=; b=jwJ0+PqwaQsKqchLRGGwr40iJPYLYFMjOuMqk64MzSdhu9181r7nwVP4usf5kkMQMa 01fTBv7A4KKTmNFXHSCqK3lE/ZRAnx6nPOMogKs+iM9SnFTV1THQctmrlSiE9wXyspfh T5xZgPFFE4OO9IZoDuSSYaBAUG/veuQDBOsogW09tX5pn3DbLN0g4EMEkJVPnjxpNyB7 +ZQhBbpee/CSn7yblg+gXy0BAdAf52H6/2jk6AWu7ACBco5Gnf9T+As6tHK6yDTejcGv DbqCJpERE/4dKUd9Cp1OdNrFPtxleLExdfzv4Tgu52/SDfJ3M6bIbFLPvZlPL+5pIGKa tEoQ== X-Gm-Message-State: ALyK8tIiYiFv/ICVBfTwTBQhwRPvj4wr97sdEqi00oK1lU1ADPQtCbbtQm94iOkUgbrEkaWJGoAEAWA7Z/keAw== MIME-Version: 1.0 X-Received: by 10.50.228.47 with SMTP id sf15mr6574121igc.63.1464333782562; Fri, 27 May 2016 00:23:02 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.107.132.212 with HTTP; Fri, 27 May 2016 00:23:02 -0700 (PDT) In-Reply-To: <20160527063731.GB10148@ox> References: <201605270457.u4R4vYqu018911@hergotha.csail.mit.edu> <20160527063731.GB10148@ox> Date: Fri, 27 May 2016 00:23:02 -0700 X-Google-Sender-Auth: 39a80qSqhs237gU6Ee_aMqV87Wo Message-ID: Subject: Re: Changing MTU on cxgbe From: "K. Macy" To: Garrett Wollman , "dmarquess@gmail.com" , "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 07:23:03 -0000 On Thursday, May 26, 2016, Navdeep Parhar wrote: > On Fri, May 27, 2016 at 12:57:34AM -0400, Garrett Wollman wrote: > > In article < > CAJpsHY4vF5Ky6GuAusLOOROgiQuyD2CcRmVxu8x3cArQRZxcbg@mail.gmail.com > > you write: > > > > ># ifconfig -m cxgbe0 > > >cxgbe0: flags=8943 > > > > ># ifconfig cxgbe0 mtu 9000 > > >ifconfig: ioctl SIOCSIFMTU (set mtu): Invalid argument > > > > I believe this device, like many others, does not allow the MTU (or > > actually the MRU) to be changed once the receive ring has been set up > > This is not correct. You can change the MTU of a cxgbe/cxl interface at > any time (whether it's up or down, passing traffic or idle, etc.). For some reason the stack needs init to be called when the MTU is changed for it to actually change the size of the packets passed to the driver. At least cxgb does not do that. I'm not at my computer right now, but cxgbe may be the same. If that's the case just up / down the interface. It _will_ take effect without that if it's passed at module load. > > Regards,ll > Navdeep > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org > " >