Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2013 20:54:59 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250383 - head/sys/dev/etherswitch/arswitch
Message-ID:  <201305082054.r48KsxnX079937@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed May  8 20:54:59 2013
New Revision: 250383
URL: http://svnweb.freebsd.org/changeset/base/250383

Log:
  Correctly mark the CPU port.
  
  Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>
  Reviewed by:	ray

Modified:
  head/sys/dev/etherswitch/arswitch/arswitch.c

Modified: head/sys/dev/etherswitch/arswitch/arswitch.c
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitch.c	Wed May  8 20:52:22 2013	(r250382)
+++ head/sys/dev/etherswitch/arswitch/arswitch.c	Wed May  8 20:54:59 2013	(r250383)
@@ -440,6 +440,7 @@ arswitch_getport(device_t dev, etherswit
 	mii = arswitch_miiforport(sc, p->es_port);
 	if (p->es_port == 0) {
 		/* fill in fixed values for CPU port */
+		p->es_flags |= ETHERSWITCH_PORT_CPU;
 		ifmr->ifm_count = 0;
 		ifmr->ifm_current = ifmr->ifm_active =
 		    IFM_ETHER | IFM_1000_T | IFM_FDX;



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