From owner-freebsd-net@FreeBSD.ORG Wed Oct 31 07:48:12 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 12762327; Wed, 31 Oct 2012 07:48:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id C9D328FC0A; Wed, 31 Oct 2012 07:48:11 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id rp8so844026pbb.13 for ; Wed, 31 Oct 2012 00:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=0ryJgnm+95r0Y0odPSwQTJRdA8y9paBPN9fkXYqc4Q0=; b=yUQqc1eKvWf8AV/6O9EDbFVwzNK6ZR+bA2a9oi1VhTMWAhaH5WM2m3KP8QRW9xNHo/ auPCwUxJVjkAlyyIgZXTVa5wdR5kQD/qVYNUKaHi6MrvUlGkZgxKwwyB64erdnixJoUO 7GAj8tuORkrE9oq3spCKv67Y3z9RkrJo6wf09uYq4+c2rgjdiPw4BYhXgnMMZtPL5A4i pXFJIb96ME7BKgM1TBNGtzfiBg+AbAdNswo/XVQU1wLwdovKFYVVTT4RoD5jEJFjM6xV HRBYH3QiLH+HEhwNk0Rud0TervQWqLI4OaYLBxj/Z7tdUHeuHHmkxlJk4aVn0Q8Xy33/ mpFA== Received: by 10.68.224.69 with SMTP id ra5mr109874668pbc.114.1351669691238; Wed, 31 Oct 2012 00:48:11 -0700 (PDT) Received: from pyunyh@gmail.com (lpe4.p59-icn.cdngp.net. [114.111.62.249]) by mx.google.com with ESMTPS id vw4sm1906105pbc.26.2012.10.31.00.48.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Oct 2012 00:48:10 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 31 Oct 2012 16:47:37 +0900 From: YongHyeon PYUN Date: Wed, 31 Oct 2012 16:47:37 +0900 To: Tom Judge Subject: Re: bxe + if_lagg Message-ID: <20121031074737.GB1471@michelle.cdnetworks.com> References: <508FF0F9.9020105@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline In-Reply-To: <508FF0F9.9020105@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 07:48:12 -0000 --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 30, 2012 at 11:23:37AM -0400, Tom Judge wrote: [...] > I am trying to get if_lagg working in an HP blade for failover between > the 2 in chassis cisco switches, but it would seem that the link state > is not being propagated up to the lagg device. > > Any hints/ideas? > > > > dmesg: > bxe1: bxe1: Ethernet address: 00:25:b3:a8:76:e4 > bxe1: ASIC (0x16500000); Rev (A0); Bus (PCIe x4, 5Gbps); Flags > (MSI-X); Queues (RSS:16); BD's (RX:510,TX:255); Firmware (5.2.13); > Bootcode (4.8.0) > Try attached patch and let me know whether it makes any difference. --s2ZSL+KKDSLx8OML Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="bxe.linkstate.diff" Index: sys/dev/bxe/if_bxe.c =================================================================== --- sys/dev/bxe/if_bxe.c (revision 242340) +++ sys/dev/bxe/if_bxe.c (working copy) @@ -2138,8 +2138,10 @@ bxe_attach(device_t dev) ifp->if_init = bxe_init; ifp->if_hwassist = BXE_IF_HWASSIST; ifp->if_capabilities = BXE_IF_CAPABILITIES; + ifp->if_capabilities |= IFCAP_LINKSTATE; /* TPA not enabled by default. */ ifp->if_capenable = BXE_IF_CAPABILITIES & ~IFCAP_LRO; + ifp->if_capenable |= IFCAP_LINKSTATE; if_initbaudrate(ifp, IF_Gbps(10)); ifp->if_snd.ifq_drv_maxlen = sc->tx_ring_size; --s2ZSL+KKDSLx8OML--