From owner-freebsd-embedded@FreeBSD.ORG Tue May 6 04:23:16 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D30F1A3; Tue, 6 May 2014 04:23:16 +0000 (UTC) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D49C7D65; Tue, 6 May 2014 04:23:15 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id t60so2730328wes.13 for ; Mon, 05 May 2014 21:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qNK9azMTPOzIu5okVPkgGw3C491jyBolQ/dqKR2X9Xs=; b=SFjBxoK/shzqMEiTsnAcKbNEJKIQ+oI47CEwLs2K6yF/cQ70ZADdckZPZ1asHNATBC WS/RyTkrKnv19ugOEnYIEUNSpJLTYbcIRLhTp2LkbRE9i5f8pAMel04kk09ClJB3MpxB IeHdmGJW0omCTb/r43JxxWc5SPuXiNn0dxfXP68oWNSEQyFIK7HyzI3Tmv5bZY/WaPHw Ef7tJjXOgfhj1JNkMxSAji0CQM6MZsZkh5H8jkpVGy7WmD+GYj1YxMfXF8MXdgs2co5k dRJ0WyFSdCdRRNcWwDPk1ydoW0GnFaXdWGCFMoRwQBAPl8CTgE/+jtepQe6GNY/Waz77 sM0A== MIME-Version: 1.0 X-Received: by 10.180.83.196 with SMTP id s4mr467833wiy.24.1399350192796; Mon, 05 May 2014 21:23:12 -0700 (PDT) Received: by 10.216.168.194 with HTTP; Mon, 5 May 2014 21:23:12 -0700 (PDT) In-Reply-To: References: <5366B4A0.7090803@weites.com> Date: Tue, 6 May 2014 01:23:12 -0300 Message-ID: Subject: Re: etherswitchcfg reports no vlan capabilities on rtl8366rb From: Luiz Otavio O Souza To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: Luiz Otavio O Souza , "freebsd-embedded@freebsd.org" , Harm Weites X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2014 04:23:16 -0000 On Sun, May 4, 2014 at 9:36 PM, Adrian Chadd wrote: > Hi, > > Hm, it sounds like the support for vlan configuration from Luiz broke things. > > Luiz, do you have some time to help Harm figure out why your vlan > config stuff broke the rtl8366 switch support? > Sure, i'll try to fix it before BSDCan, but the clock is ticking fast this week :/ Luiz > > > On 4 May 2014 14:44, Harm Weites wrote: >> Hi, >> >> My 1043ND is running HEAD @ r265004M and it's a bit unhappy when >> configuring vlans on the RTL8366RB. Only after reverting revisions >> 253569 253568 and 250382 things went back to running normal. >> >> This is from before reverting: >> >> # etherswitchcfg -v info >> etherswitch0: Realtek RTL8366RB with 6 ports and 16 VLAN groups >> etherswitch0: VLAN capabilities=0<> >> port0: >> flags=0<> >> media: Ethernet autoselect (none) >> status: no carrier >> port1: >> flags=0<> >> media: Ethernet autoselect (1000baseT ) >> status: active >> port2: >> flags=0<> >> media: Ethernet autoselect (none) >> status: no carrier >> port3: >> flags=0<> >> media: Ethernet autoselect (none) >> status: no carrier >> port4: >> flags=0<> >> media: Ethernet autoselect (none) >> status: no carrier >> port5: >> flags=0<> >> media: Ethernet 1000baseT >> status: active >> vlangroup0: >> vlan: 4094 >> members 5t >> vlangroup1: >> vlan: 1 >> members 0,5t >> vlangroup2: >> vlan: 2 >> members 1,2,3,4,5t >> vlangroup3: >> vlan: 4 >> members none >> [..] >> >> # etherswitchcfg config vlan_mode >> vlan_mode needs an argument >> >> This is annoying as well, though setting it to port produces no output >> and apparently doesn't work out anyway. >> >> # etherswitchcfg port1 pvid >> pvid needs an argument >> port1: >> flags=0<> >> media: Ethernet autoselect (1000baseT ) >> status: active >> # etherswitchcfg port1 pvid 2 >> etherswitchcfg: ioctl(IOETHERSWITCHSETPORT): Device not configured >> >> I decided to just leave out those revisions to make it usable again, >> since those were the most notable changes in the etherswitch area. >> >> Regards, >> Harm