Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2012 16:47:37 +0900
From:      YongHyeon PYUN <pyunyh@gmail.com>
To:        Tom Judge <tj@freebsd.org>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: bxe + if_lagg
Message-ID:  <20121031074737.GB1471@michelle.cdnetworks.com>
In-Reply-To: <508FF0F9.9020105@freebsd.org>
References:  <508FF0F9.9020105@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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: <Broadcom NetXtreme II BCM57711E 10GbE (A0) BXE v:1.5.52
> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121031074737.GB1471>