<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/etherswitch, branch stable/10</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r303891, r303892:</title>
<updated>2016-09-08T15:06:28+00:00</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-09-08T15:06:28+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6d06918e666cd21a24c32e822afe99fd97bcec1d'/>
<id>6d06918e666cd21a24c32e822afe99fd97bcec1d</id>
<content type='text'>
sys: replace comma with semicolon when pertinent.

Uses of commas instead of a semicolons can easily go undetected. The comma
can serve as a statement separator but this shouldn't be abused when
statements are meant to be standalone.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sys: replace comma with semicolon when pertinent.

Uses of commas instead of a semicolons can easily go undetected. The comma
can serve as a statement separator but this shouldn't be abused when
statements are meant to be standalone.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC: r262571</title>
<updated>2014-03-06T13:15:53+00:00</updated>
<author>
<name>Christian Brueffer</name>
<email>brueffer@FreeBSD.org</email>
</author>
<published>2014-03-06T13:15:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=676b1c658dece7f51ea83e407746435d0317902b'/>
<id>676b1c658dece7f51ea83e407746435d0317902b</id>
<content type='text'>
Add missing includes and remove two unused ones.

Reviewed by:	loos
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing includes and remove two unused ones.

Reviewed by:	loos
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r258779,r258780,r258787,r258822:</title>
<updated>2014-02-04T03:36:42+00:00</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2014-02-04T03:36:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=eca45e57193faeac9fd7a519ed8aef106f2234b5'/>
<id>eca45e57193faeac9fd7a519ed8aef106f2234b5</id>
<content type='text'>
Fix undefined behavior: (1 &lt;&lt; 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U &lt;&lt; 31) which gets the
expected result.

Similar to the (1 &lt;&lt; 31) case it is not defined to do (2 &lt;&lt; 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix undefined behavior: (1 &lt;&lt; 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U &lt;&lt; 31) which gets the
expected result.

Similar to the (1 &lt;&lt; 31) case it is not defined to do (2 &lt;&lt; 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the support for 802.1q and port based vlans for arswitch.</title>
<updated>2013-07-23T14:24:22+00:00</updated>
<author>
<name>Luiz Otavio O Souza</name>
<email>loos@FreeBSD.org</email>
</author>
<published>2013-07-23T14:24:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b9f07b864ba2f42324fa159cc6c1683b3e3e9656'/>
<id>b9f07b864ba2f42324fa159cc6c1683b3e3e9656</id>
<content type='text'>
Tested on: RB450G (standalone ar8316), RSPRO (standalone ar8316) and
TPLink MR-3220 (ar724x integrated switch).

Approved by:	adrian (mentor)
Obtained from:	zrouter
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tested on: RB450G (standalone ar8316), RSPRO (standalone ar8316) and
TPLink MR-3220 (ar724x integrated switch).

Approved by:	adrian (mentor)
Obtained from:	zrouter
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the arswitch instability problem.  It turns out that the</title>
<updated>2013-07-23T14:02:38+00:00</updated>
<author>
<name>Luiz Otavio O Souza</name>
<email>loos@FreeBSD.org</email>
</author>
<published>2013-07-23T14:02:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9604b6ac4a8367479734067c154863d63cf8d054'/>
<id>9604b6ac4a8367479734067c154863d63cf8d054</id>
<content type='text'>
arswitch_writereg() routine was writing the registers in the wrong order.

Revert -r241918 as the root problem is now fixed. Remove another workaround
from arswitch_ar7240.c.

Simplify and fix the code on arswitch_writephy() by using
arswitch_writereg().

While here remove a redundant declaration from arswitchvar.h.

Approved by:	adrian (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
arswitch_writereg() routine was writing the registers in the wrong order.

Revert -r241918 as the root problem is now fixed. Remove another workaround
from arswitch_ar7240.c.

Simplify and fix the code on arswitch_writephy() by using
arswitch_writereg().

While here remove a redundant declaration from arswitchvar.h.

Approved by:	adrian (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.</title>
<updated>2013-07-23T13:56:38+00:00</updated>
<author>
<name>Luiz Otavio O Souza</name>
<email>loos@FreeBSD.org</email>
</author>
<published>2013-07-23T13:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=cc320e372e49d48055e9859a9df60c81481c0f1b'/>
<id>cc320e372e49d48055e9859a9df60c81481c0f1b</id>
<content type='text'>
This fix the case when etherswitch is printing the information of port 0
vlan group (in port based vlan mode) with no member ports.

Add the ETHERSWITCH_VID_VALID support to ip17x driver.

Add the ETHERSWITCH_VID_VALID support to rt8366 driver.

arswitch doesn't need to be updated as it doesn't support vlans management
yet.

Approved by:	adrian (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fix the case when etherswitch is printing the information of port 0
vlan group (in port based vlan mode) with no member ports.

Add the ETHERSWITCH_VID_VALID support to ip17x driver.

Add the ETHERSWITCH_VID_VALID support to rt8366 driver.

arswitch doesn't need to be updated as it doesn't support vlans management
yet.

Approved by:	adrian (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>Bring in a basic ethernet switch driver for the IP17x series of</title>
<updated>2013-05-08T20:58:41+00:00</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-05-08T20:58:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=248dd6039ded56dd72f1a77cf0148a9b113ad3c8'/>
<id>248dd6039ded56dd72f1a77cf0148a9b113ad3c8</id>
<content type='text'>
switches.

These are notably found on some AR71xx based Mikrotik boards.

Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
switches.

These are notably found on some AR71xx based Mikrotik boards.

Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the ukswitch code to work with the new vlan changes:</title>
<updated>2013-05-08T20:56:43+00:00</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-05-08T20:56:43+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1ead288f8df4ae495b1c5ffdd638af12c1b30217'/>
<id>1ead288f8df4ae495b1c5ffdd638af12c1b30217</id>
<content type='text'>
* Fix API changes;
* remove unused code;
* Allow some switches to be used that don't expose a set of PHY
  registers for the CPU facing port (eg the ADM6996 for the Ubiquiti
  Routerstation.)

Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix API changes;
* remove unused code;
* Allow some switches to be used that don't expose a set of PHY
  registers for the CPU facing port (eg the ADM6996 for the Ubiquiti
  Routerstation.)

Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</pre>
</div>
</content>
</entry>
<entry>
<title>Correctly mark the CPU port.</title>
<updated>2013-05-08T20:54:59+00:00</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-05-08T20:54:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f47857dc3d17f3d338c4a4b09e3021a8e8d5e721'/>
<id>f47857dc3d17f3d338c4a4b09e3021a8e8d5e721</id>
<content type='text'>
Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</pre>
</div>
</content>
</entry>
<entry>
<title>Add the ability to change the vlan operation mode.</title>
<updated>2013-05-08T20:46:54+00:00</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-05-08T20:46:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a48a9355ef875dfdcf5759a4fb401b4d3b83a36c'/>
<id>a48a9355ef875dfdcf5759a4fb401b4d3b83a36c</id>
<content type='text'>
This adds a vlan capability field to etherswitch_info structure and some
definitions of ports flags.

It adds the support to global config parameters which right now is used
only to switch between the vlan modes, but it is intended to be extended
to support the setup of others parameters (STP, mirror, etc.).

Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds a vlan capability field to etherswitch_info structure and some
definitions of ports flags.

It adds the support to global config parameters which right now is used
only to switch between the vlan modes, but it is intended to be extended
to support the setup of others parameters (STP, mirror, etc.).

Submitted by:	Luiz Otavio O Souza &lt;loos.br@gmail.com&gt;
Reviewed by:	ray
</pre>
</div>
</content>
</entry>
</feed>
