<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/mscc/Makefile, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-21T00:25:23Z</updated>
<entry>
<title>net: mscc: ocelot: rename ocelot_ace.{c, h} to ocelot_vcap.{c,h}</title>
<updated>2020-06-21T00:25:23Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2020-06-20T15:43:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c83654f246b980cc65f72f5c7b1501470082ede'/>
<id>urn:sha1:3c83654f246b980cc65f72f5c7b1501470082ede</id>
<content type='text'>
Access Control Lists (and their respective Access Control Entries) are
specifically entries in the VCAP IS2, the security enforcement block,
according to the documentation.

Let's rename the files that deal with generic operations on the VCAP
TCAM, so that VCAP IS1 and ES0 can reuse the same code without
confusion.

Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: move net_device related functions to ocelot_net.c</title>
<updated>2020-06-21T00:25:23Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2020-06-20T15:43:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c90eea310f80460b81a7afe27064c7f0200d1d1'/>
<id>urn:sha1:9c90eea310f80460b81a7afe27064c7f0200d1d1</id>
<content type='text'>
The ocelot hardware library shouldn't contain too much net_device
specific code, since it is shared with DSA which abstracts that
structure away. So much as much of this code as possible into the
mscc_ocelot driver and outside of the common library.

We're making an exception for MDB and LAG code. That is not yet exported
to DSA, but when it will, most of the code that's already in ocelot.c
will remain there. So, there's no point in moving code to ocelot_net.c
just to move it back later.

We could have moved all net_device code to ocelot_vsc7514.c directly,
but let's operate under the assumption that if a new switchdev ocelot
driver gets added, it'll define its SoC-specific stuff in a new
ocelot_vsc*.c file and it'll reuse the rest of the code.

Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: move ocelot_regs.c into ocelot_vsc7514.c</title>
<updated>2020-06-21T00:25:23Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2020-06-20T15:43:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d9feb9049973332de0242a08248e069113bf5761'/>
<id>urn:sha1:d9feb9049973332de0242a08248e069113bf5761</id>
<content type='text'>
ocelot_regs.c actually shouldn't be part of the common library. It
describes the register map of the VSC7514 switch. The way ocelot
switches work, they'll have highly optimized register maps, so another
SoC will likely have the same registers but laid out completely
different in memory (so there's little room for reusing this structure).
So move it to ocelot_vsc7514.c instead.

Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: rename MSCC_OCELOT_SWITCH_OCELOT to MSCC_OCELOT_SWITCH</title>
<updated>2020-06-21T00:25:23Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2020-06-20T15:43:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14addfb6356b738269d36eb3204cc4fedd09760a'/>
<id>urn:sha1:14addfb6356b738269d36eb3204cc4fedd09760a</id>
<content type='text'>
Putting 'ocelot' in the config's name twice just to say that 'it's the
ocelot driver running on the ocelot SoC' is a bit confusing. Instead,
it's just the ocelot driver. Now that we've renamed the previous symbol
that was holding the MSCC_OCELOT_SWITCH_OCELOT into *_LIB (because
that's what it is), we're free to use this name for the driver.

Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: convert MSCC_OCELOT_SWITCH into a library</title>
<updated>2020-06-21T00:25:23Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2020-06-20T15:43:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f4d0323bae4ed24d9f9f5bba3d27def06354fee7'/>
<id>urn:sha1:f4d0323bae4ed24d9f9f5bba3d27def06354fee7</id>
<content type='text'>
Hide the CONFIG_MSCC_OCELOT_SWITCH option from users. It is meant to be
only a hardware library which is selected by the drivers that use it
(ocelot, felix).

Since it is "selected" from Kconfig, all its dependencies are manually
transferred to the driver that selects it. This is because "select" in
Kconfig language is a bit of a mess, and doesn't handle dependencies of
selected options quite right.

Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: rename module to mscc_ocelot</title>
<updated>2020-06-21T00:25:23Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2020-06-20T15:43:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=56583862b87b70dded31b1768efe3d47d6066887'/>
<id>urn:sha1:56583862b87b70dded31b1768efe3d47d6066887</id>
<content type='text'>
mscc_ocelot is a slightly better name for a module than ocelot_board or
ocelot_vsc7514 is, so let's use that.

Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: rename ocelot_board.c to ocelot_vsc7514.c</title>
<updated>2020-06-21T00:25:23Z</updated>
<author>
<name>Vladimir Oltean</name>
</author>
<published>2020-06-20T15:43:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=589aa6e7c9de322d47eb33a5cee8cc38838319e6'/>
<id>urn:sha1:589aa6e7c9de322d47eb33a5cee8cc38838319e6</id>
<content type='text'>
To follow the model of felix and seville where we have one
platform-specific file, rename this file to the actual SoC it serves.

Signed-off-by: Vladimir Oltean &lt;vladimir.oltean@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: move ocelot ptp clock code out of ocelot.c</title>
<updated>2020-04-21T22:38:33Z</updated>
<author>
<name>Yangbo Lu</name>
</author>
<published>2020-04-20T02:46:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b49d128b3f8d8fff8972afcbc603802e5e40c6a'/>
<id>urn:sha1:2b49d128b3f8d8fff8972afcbc603802e5e40c6a</id>
<content type='text'>
The Ocelot PTP clock driver had been embedded into ocelot.c driver.
It had supported basic gettime64/settime64/adjtime/adjfine functions
by now which were used by both Ocelot switch and Felix switch.

This patch is to move current ptp clock code out of ocelot.c driver
maintaining as a single ocelot_ptp.c.
For futher new features implementation, the common code could be put
in ocelot_ptp.c and the switch specific code should be in specific
switch driver. The interrupt implementation in SoC is different
between Ocelot and Felix.

Signed-off-by: Yangbo Lu &lt;yangbo.lu@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: Hardware ofload for tc flower filter</title>
<updated>2019-06-02T20:49:49Z</updated>
<author>
<name>Horatiu Vultur</name>
</author>
<published>2019-05-31T07:16:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fe3490e6107e10da90dee09cade35e6f4b558294'/>
<id>urn:sha1:fe3490e6107e10da90dee09cade35e6f4b558294</id>
<content type='text'>
Hardware offload of port filtering are now supported via tc command using
flower filter. ACL rules are used to enable the hardware offload.
The following keys are supported:

vlan_id
vlan_prio
dst_mac/src_mac for non IP frames
dst_ip/src_ip
dst_port/src_port

The following actions are supported:
trap
drop

These filters are supported only on the ingress schedulare.

Add:
tc qdisc add dev eth3 ingress
tc filter ad dev eth3 parent ffff: ip_proto ip flower \
    ip_proto tcp dst_port 80 action drop

Signed-off-by: Horatiu Vultur &lt;horatiu.vultur@microchip.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: mscc: ocelot: Add support for tcam</title>
<updated>2019-06-02T20:49:49Z</updated>
<author>
<name>Horatiu Vultur</name>
</author>
<published>2019-05-31T07:16:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b596229448dd2a263cdc4906e60b1b2249777ee4'/>
<id>urn:sha1:b596229448dd2a263cdc4906e60b1b2249777ee4</id>
<content type='text'>
Add ACL support using the TCAM. Using ACL it is possible to create rules
in hardware to filter/redirect frames.

Signed-off-by: Horatiu Vultur &lt;horatiu.vultur@microchip.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
