bcm_sf2 is currently the only driver using the phy argument passed to
.port_enable. It resets the state machine if the phy has been hard
reset. This check is generic and can be moved to DSA core.
Signed-off-by: Vivien Didelot
---
drivers/net/dsa/bcm_sf2.c | 16 +---
net/dsa/slave.c
the
master device.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/slave.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 6290741e496a..235a5c95dfcc 100644
--- a/net/dsa/slave.c
+++ b/n
the
master device.
Signed-off-by: Vivien Didelot
---
net/dsa/slave.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 6290741e496a..235a5c95dfcc 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -144,6 +144,11 @@ static int
The .port_enable and .port_disable functions are meant to deal with the
switch ports only, and no driver is using the phy argument anyway.
Remove it.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
drivers/net/dsa/b53/b53_common.c | 6 +++---
drivers/net/d
The .port_enable and .port_disable functions are meant to deal with the
switch ports only, and no driver is using the phy argument anyway.
Remove it.
Signed-off-by: Vivien Didelot
---
drivers/net/dsa/b53/b53_common.c | 6 +++---
drivers/net/dsa/b53/b53_priv.h | 4 ++--
drivers
This patchset removes the unnecessary PHY device argument in port
enable/disable switch operations, makes slave open and close symmetrical
and finally provides helpers for enabling or disabling a DSA port.
Vivien Didelot (4):
net: dsa: move up phy enabling in core
net: dsa: remove phy arg
This patchset removes the unnecessary PHY device argument in port
enable/disable switch operations, makes slave open and close symmetrical
and finally provides helpers for enabling or disabling a DSA port.
Vivien Didelot (4):
net: dsa: move up phy enabling in core
net: dsa: remove phy arg
Provide dsa_port_enable and dsa_port_disable helpers to respectively
enable and disable a switch port. This makes the dsa_port_set_state_now
helper static.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/dsa_priv.h | 3 ++-
net/dsa/port.c
Provide dsa_port_enable and dsa_port_disable helpers to respectively
enable and disable a switch port. This makes the dsa_port_set_state_now
helper static.
Signed-off-by: Vivien Didelot
---
net/dsa/dsa_priv.h | 3 ++-
net/dsa/port.c | 31 ++-
net/dsa/slave.c
, otherwise LGTM:
Reviewed-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
> +/* forward special tagged packets from port 0 to port 1 *or* port 2 */
> +static int lan9303_setup_tagging(struct lan9303 *chip)
> +{
> + int ret;
> + /* enable defining the destination por
Hi Egil,
Egil Hjelmeland writes:
> Prepare for next patch:
> Move tag setup from lan9303_separate_ports() to new function
> lan9303_setup_tagging()
>
> Signed-off-by: Egil Hjelmeland
Minor styling issues, otherwise LGTM:
Reviewed-by: Vivien Didelot
> +/* forward special t
Hjelmeland <pri...@egil-hjelmeland.no>
Styling nitpicks below, other than that, the patch LGTM:
Reviewed-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
> #include
> #include
> #include
> +#include
It's nice to order header inclusions alphabetic
other than that, the patch LGTM:
Reviewed-by: Vivien Didelot
> #include
> #include
> #include
> +#include
It's nice to order header inclusions alphabetically.
>
> #include "lan9303.h"
>
> @@ -146,6 +147,7 @@
> # define LAN9303_SWE_PORT_STA
Dumping a DSA port's FDB entries is not specific to a DSA slave, so add
a dsa_port_fdb_dump function, similarly to dsa_port_fdb_add and
dsa_port_fdb_del.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/dsa_priv.h | 1 +
net/dsa/port.c | 11 ++
Dumping a DSA port's FDB entries is not specific to a DSA slave, so add
a dsa_port_fdb_dump function, similarly to dsa_port_fdb_add and
dsa_port_fdb_del.
Signed-off-by: Vivien Didelot
---
net/dsa/dsa_priv.h | 1 +
net/dsa/port.c | 11 +++
net/dsa/slave.c| 9 ++---
3 files
A few DSA slave functions take a dsa_slave_priv pointer as first
argument, whereas the scope of the slave.c functions is the slave
net_device structure. Fix this and rename dsa_netpoll_send_skb to
dsa_slave_netpoll_send_skb.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.
A few DSA slave functions take a dsa_slave_priv pointer as first
argument, whereas the scope of the slave.c functions is the slave
net_device structure. Fix this and rename dsa_netpoll_send_skb to
dsa_slave_netpoll_send_skb.
Signed-off-by: Vivien Didelot
---
net/dsa/slave.c | 29
Each port in DSA has its own dedicated CPU port currently available in
its parent switch's ds->ports[port].cpu_dp. Use it instead of getting
the unique tree CPU port, which will be deprecated soon.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
drivers/ne
Each port in DSA has its own dedicated CPU port currently available in
its parent switch's ds->ports[port].cpu_dp. Use it instead of getting
the unique tree CPU port, which will be deprecated soon.
Signed-off-by: Vivien Didelot
---
drivers/net/dsa/b53/b53_common.c | 4 ++--
drivers/net/
master() and renaming
dsa_slave_dev_check() to netdev_is_dsa_slave().
In the meantime, looks good!
Reviewed-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
dsa_slave().
In the meantime, looks good!
Reviewed-by: Vivien Didelot
with master net device specific code.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/Makefile | 2 +-
net/dsa/dsa.c | 28 -
net/dsa/dsa2.c | 4 +-
net/dsa/dsa_priv.h | 7 ++--
net/dsa/legacy.c | 4 +-
net/dsa/master.c
with master net device specific code.
Signed-off-by: Vivien Didelot
---
net/dsa/Makefile | 2 +-
net/dsa/dsa.c | 28 -
net/dsa/dsa2.c | 4 +-
net/dsa/dsa_priv.h | 7 ++--
net/dsa/legacy.c | 4 +-
net/dsa/master.c | 120
better control of the master device and
support for multiple CPU ports.
Vivien Didelot (4):
net: dsa: remove copy of master ethtool_ops
net: dsa: setup master ethtool unconditionally
net: dsa: setup master ethtool after dsa_ptr
net: dsa: move master ethtool code
include/net/dsa.h | 1 -
net
better control of the master device and
support for multiple CPU ports.
Vivien Didelot (4):
net: dsa: remove copy of master ethtool_ops
net: dsa: setup master ethtool unconditionally
net: dsa: setup master ethtool after dsa_ptr
net: dsa: move master ethtool code
include/net/dsa.h | 1 -
net
When a DSA switch tree is meant to be applied, it already has a CPU
port. Thus remove the condition of dst->cpu_dp.
Moreover, the next lines access dst->cpu_dp unconditionally.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/dsa2.c | 14 +-
When a DSA switch tree is meant to be applied, it already has a CPU
port. Thus remove the condition of dst->cpu_dp.
Moreover, the next lines access dst->cpu_dp unconditionally.
Signed-off-by: Vivien Didelot
---
net/dsa/dsa2.c | 14 +-
1 file changed, 5 insertions(+), 9 del
cleared.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/dsa2.c | 12 +++-
net/dsa/legacy.c | 10 +++---
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
index bd19304f862f..032f8bc3e788 100644
---
cleared.
Signed-off-by: Vivien Didelot
---
net/dsa/dsa2.c | 12 +++-
net/dsa/legacy.c | 10 +++---
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
index bd19304f862f..032f8bc3e788 100644
--- a/net/dsa/dsa2.c
+++ b/net/dsa/dsa2.c
as
well as its needed functions before calling them.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
include/net/dsa.h | 1 -
net/dsa/dsa.c | 8
net/dsa/slave.c | 19 +++
3 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/i
as
well as its needed functions before calling them.
Signed-off-by: Vivien Didelot
---
include/net/dsa.h | 1 -
net/dsa/dsa.c | 8
net/dsa/slave.c | 19 +++
3 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/include/net/dsa.h b/include/net/dsa.h
index
ks,
Vivien
-- Beginning of the patch --
This commit adds the boiler plate to create a DSA related debug
filesystem entry as well as a "tree" file, containing the tree index.
# cat switch1/tree
0
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
Reviewed-b
ks,
Vivien
-- Beginning of the patch --
This commit adds the boiler plate to create a DSA related debug
filesystem entry as well as a "tree" file, containing the tree index.
# cat switch1/tree
0
Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fai
Hi Greg,
Can I ask for a quick review of this patch as well? It's the one adding
the boilerplate for a single debugfs file, and I'm pretty sure it can be
reduced somehow.
Also more important, you will notice what seems to be a bug to me:
I can read or write a file even if I didn't mask the
Hi Greg,
Can I ask for a quick review of this patch as well? It's the one adding
the boilerplate for a single debugfs file, and I'm pretty sure it can be
reduced somehow.
Also more important, you will notice what seems to be a bug to me:
I can read or write a file even if I didn't mask the
Hi Greg,
Greg KH writes:
> I agree you shouldn't be using debugfs for this, but in the future, if
> you do write debugfs code, please take the following review into
> account:
Humm sorry I may not have given enough details. This was really meant
for debug and dev
Hi Greg,
Greg KH writes:
> I agree you shouldn't be using debugfs for this, but in the future, if
> you do write debugfs code, please take the following review into
> account:
Humm sorry I may not have given enough details. This was really meant
for debug and dev only, because DSA makes it
Hi Tristram,
tristram...@microchip.com writes:
> From: Tristram Ha
>
> This series of patches is to modify the original KSZ9477 DSA driver so that
> other KSZ switch drivers can be added and use the common code.
Please see
Hi Tristram,
tristram...@microchip.com writes:
> From: Tristram Ha
>
> This series of patches is to modify the original KSZ9477 DSA driver so that
> other KSZ switch drivers can be added and use the common code.
Please see Documentation/process/submitting-patches.rst. Use a correct
formatting
to a dsa_port
(i.e. the switch device side) and a pointer to the master interface
(i.e. the SoC CPU side).
The structure will be extended with master-specific data such as the
tagging operations or the master ethtool_ops copies.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.
to a dsa_port
(i.e. the switch device side) and a pointer to the master interface
(i.e. the SoC CPU side).
The structure will be extended with master-specific data such as the
tagging operations or the master ethtool_ops copies.
Signed-off-by: Vivien Didelot
---
drivers/net/dsa/b53/b53_common.c | 4
.
Also the ethtool ops were the only remaining users for
master->port->netdev thus remove this assignment now.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
include/net/dsa.h | 9 ++---
net/dsa/dsa.c | 28 --
net/dsa/dsa2.c | 4
.
Also the ethtool ops were the only remaining users for
master->port->netdev thus remove this assignment now.
Signed-off-by: Vivien Didelot
---
include/net/dsa.h | 9 ++---
net/dsa/dsa.c | 28 --
net/dsa/dsa2.c | 4 +-
net/dsa/dsa_priv.h | 5 +--
net/dsa/le
operations are specific to the DSA master port and
not the whole switch tree, move the tag_ops pointer in dsa_master.
Finally change the dsa_ptr from dsa_switch_tree to a dsa_master.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
include/linux/netdevice.h | 4 ++--
i
operations are specific to the DSA master port and
not the whole switch tree, move the tag_ops pointer in dsa_master.
Finally change the dsa_ptr from dsa_switch_tree to a dsa_master.
Signed-off-by: Vivien Didelot
---
include/linux/netdevice.h | 4 ++--
include/net/dsa.h
copy and the
tagging protocol used to pass frames with the associated slave ports.
The dsa_ptr is changed to a dsa_master instance, and each DSA slave now
has a pointer to a master port.
This is a step forward better control over the CPU conduit and support
for multiple CPU ports.
Vivien Didelot
copy and the
tagging protocol used to pass frames with the associated slave ports.
The dsa_ptr is changed to a dsa_master instance, and each DSA slave now
has a pointer to a master port.
This is a step forward better control over the CPU conduit and support
for multiple CPU ports.
Vivien Didelot
Because each DSA slave port may use a different DSA master port, add a
pointer to a master in the slave structure. This is a preparatory patch
for multiple CPU ports.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/dsa_priv.h | 7 ++-
net/dsa/slave.c
Because each DSA slave port may use a different DSA master port, add a
pointer to a master in the slave structure. This is a preparatory patch
for multiple CPU ports.
Signed-off-by: Vivien Didelot
---
net/dsa/dsa_priv.h | 7 ++-
net/dsa/slave.c| 33 ++---
2
Hi David, Jiri,
Jiri Pirko <j...@resnulli.us> writes:
> Tue, Aug 29, 2017 at 06:38:37AM CEST, da...@davemloft.net wrote:
>>From: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
>>Date: Mon, 28 Aug 2017 15:17:38 -0400
>>
>>> This patch series ad
Hi David, Jiri,
Jiri Pirko writes:
> Tue, Aug 29, 2017 at 06:38:37AM CEST, da...@davemloft.net wrote:
>>From: Vivien Didelot
>>Date: Mon, 28 Aug 2017 15:17:38 -0400
>>
>>> This patch series adds a generic debugfs interface for the DSA
>>> framework,
The same dsa_fdb_dump_cb_t callback is used since there is no
distinction to do between FDB and MDB entries at this layer.
Implement mv88e6xxx_port_mdb_dump so that multicast addresses associated
to a switch port can be dumped.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.
The same dsa_fdb_dump_cb_t callback is used since there is no
distinction to do between FDB and MDB entries at this layer.
Implement mv88e6xxx_port_mdb_dump so that multicast addresses associated
to a switch port can be dumped.
Signed-off-by: Vivien Didelot
Reviewed-by: Andrew Lunn
:00 port5
drwxr-xr-x 2 root root 0 Jan 1 00:00 port6
Future patches will add entry files to these directories.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
include/net/dsa.h | 7
net/dsa/Kconfig| 14 +++
net/dsa/Makefile | 1 +
net/dsa/deb
:00 port5
drwxr-xr-x 2 root root 0 Jan 1 00:00 port6
Future patches will add entry files to these directories.
Signed-off-by: Vivien Didelot
---
include/net/dsa.h | 7
net/dsa/Kconfig| 14 +++
net/dsa/Makefile | 1 +
net/dsa/debugfs.c | 118
Add a debug filesystem "mdb" entry to query a port's hardware MDB
entries through the .port_mdb_dump switch operation.
This is really convenient to query directly the hardware or inspect DSA
or CPU links, since these ports are not exposed to userspace.
Signed-off-by: Vivien Didelot &l
Add a debug filesystem "mdb" entry to query a port's hardware MDB
entries through the .port_mdb_dump switch operation.
This is really convenient to query directly the hardware or inspect DSA
or CPU links, since these ports are not exposed to userspace.
Signed-off-by: Vivien Didelot
a CPU port:
# cat port5/vlan
vid 1 untagged pvid
vid 42 tagged
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.faine...@gmail.com>
Reviewed-by: Andrew Lunn <and...@lunn.ch>
---
net/dsa/debugfs.c | 29 +
a CPU port:
# cat port5/vlan
vid 1 untagged pvid
vid 42 tagged
Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fainelli
Reviewed-by: Andrew Lunn
---
net/dsa/debugfs.c | 29 +
1 file changed, 29 insertions(+)
diff --git a/net/dsa/debugfs.c
This commit adds the boiler plate to create a DSA related debug
filesystem entry as well as a "tree" file, containing the tree index.
# cat switch1/tree
0
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.faine...@
This commit adds the boiler plate to create a DSA related debug
filesystem entry as well as a "tree" file, containing the tree index.
# cat switch1/tree
0
Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fainelli
Reviewed-by: Andrew Lunn
---
net/dsa/debug
otocol to string helper
- use %pM to print MAC addresses
- explicit "tagged" VLANs
Vivien Didelot (10):
net: dsa: add debugfs interface
net: dsa: debugfs: add tree
net: dsa: debugfs: add tag_protocol
net: dsa: debugfs: add port stats
net: dsa: debugfs: add port regs
net: d
otocol to string helper
- use %pM to print MAC addresses
- explicit "tagged" VLANs
Vivien Didelot (10):
net: dsa: add debugfs interface
net: dsa: debugfs: add tree
net: dsa: debugfs: add tag_protocol
net: dsa: debugfs: add port stats
net: dsa: debugfs: add port regs
net: d
This commit defines a dsa_vlan_dump_cb_t callback, similar to the FDB
dump callback and partly reverts commit a0b6b8c9fa3c ("net: dsa: Remove
support for vlan dump from DSA's drivers") to restore the DSA drivers
VLAN dump operations.
Signed-off-by: Vivien Didelot &l
This commit defines a dsa_vlan_dump_cb_t callback, similar to the FDB
dump callback and partly reverts commit a0b6b8c9fa3c ("net: dsa: Remove
support for vlan dump from DSA's drivers") to restore the DSA drivers
VLAN dump operations.
Signed-off-by: Vivien Didelot
Reviewed-by: Floria
tocol enum to a string.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
include/net/dsa.h | 26 ++
net/dsa/debugfs.c | 23 +++
2 files changed, 49 insertions(+)
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 7341178319
tocol enum to a string.
Signed-off-by: Vivien Didelot
---
include/net/dsa.h | 26 ++
net/dsa/debugfs.c | 23 +++
2 files changed, 49 insertions(+)
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 7341178319f5..1309ba0376ae 100644
--- a/include/net/d
n_discards : 0
sw_in_filtered : 0 sw_in_filtered : 0
sw_out_filtered : 0 sw_out_filtered : 216
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.faine...@gmail.com>
Reviewed-by: Andre
00
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.faine...@gmail.com>
Reviewed-by: Andrew Lunn <and...@lunn.ch>
---
net/dsa/debugfs.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a
n_discards : 0
sw_in_filtered : 0 sw_in_filtered : 0
sw_out_filtered : 0 sw_out_filtered : 216
Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fainelli
Reviewed-by: Andrew Lunn
---
net/dsa/debugfs.c | 43
00
Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fainelli
Reviewed-by: Andrew Lunn
---
net/dsa/debugfs.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 997bbc8eb502..7b299c9d9892 100644
--- a/net/dsa
2:34:56:78:90:ab unicast static
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.faine...@gmail.com>
Reviewed-by: Andrew Lunn <and...@lunn.ch>
---
net/dsa/debugfs.c | 31 +++
1 file changed, 31 ins
2:34:56:78:90:ab unicast static
Signed-off-by: Vivien Didelot
Reviewed-by: Florian Fainelli
Reviewed-by: Andrew Lunn
---
net/dsa/debugfs.c | 31 +++
1 file changed, 31 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 7b299c9d9892..59c09a67b
00
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/debugfs.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 5f91b4423404..012fcf466cc1 100644
--- a/net/dsa/debugfs
n_discards : 0
sw_in_filtered : 0 sw_in_filtered : 0
sw_out_filtered : 0 sw_out_filtered : 216
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/debugfs.c | 43 +++
1
00
Signed-off-by: Vivien Didelot
---
net/dsa/debugfs.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 5f91b4423404..012fcf466cc1 100644
--- a/net/dsa/debugfs.c
+++ b/net/dsa/debugfs.c
@@ -109,6 +109,40 @@
n_discards : 0
sw_in_filtered : 0 sw_in_filtered : 0
sw_out_filtered : 0 sw_out_filtered : 216
Signed-off-by: Vivien Didelot
---
net/dsa/debugfs.c | 43 +++
1 file changed, 43 insertions(+)
diff --git
12:34:56:78:90:abstaticunicast
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/debugfs.c | 36
1 file changed, 36 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 012fcf466cc1..8204c62dc9c1
12:34:56:78:90:abstaticunicast
Signed-off-by: Vivien Didelot
---
net/dsa/debugfs.c | 36
1 file changed, 36 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 012fcf466cc1..8204c62dc9c1 100644
--- a/net/dsa/debugfs.c
+++ b/net/dsa
:00 port5
drwxr-xr-x 2 root root 0 Jan 1 00:00 port6
Future patches will add entry files to these directories.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
include/net/dsa.h | 7
net/dsa/Kconfig| 14 +++
net/dsa/Makefile | 1 +
net/dsa/deb
:00 port5
drwxr-xr-x 2 root root 0 Jan 1 00:00 port6
Future patches will add entry files to these directories.
Signed-off-by: Vivien Didelot
---
include/net/dsa.h | 7
net/dsa/Kconfig| 14 +++
net/dsa/Makefile | 1 +
net/dsa/debugfs.c | 121
The same dsa_fdb_dump_cb_t callback is used since there is no
distinction to do between FDB and MDB entries at this layer.
Implement mv88e6xxx_port_mdb_dump so that multicast addresses associated
to a switch port can be dumped.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.
The same dsa_fdb_dump_cb_t callback is used since there is no
distinction to do between FDB and MDB entries at this layer.
Implement mv88e6xxx_port_mdb_dump so that multicast addresses associated
to a switch port can be dumped.
Signed-off-by: Vivien Didelot
---
drivers/net/dsa/mv88e6xxx/chip.c
This commit defines a dsa_vlan_dump_cb_t callback, similar to the FDB
dump callback and partly reverts commit a0b6b8c9fa3c ("net: dsa: Remove
support for vlan dump from DSA's drivers") to restore the DSA drivers
VLAN dump operations.
Signed-off-by: Vivien Didelot &l
This commit defines a dsa_vlan_dump_cb_t callback, similar to the FDB
dump callback and partly reverts commit a0b6b8c9fa3c ("net: dsa: Remove
support for vlan dump from DSA's drivers") to restore the DSA drivers
VLAN dump operations.
Signed-off-by: Vivien Didelot
---
drivers/n
a CPU port:
# cat port5/vlan
vid 1
vid 42 pvid
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/debugfs.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 98c5068d20
a CPU port:
# cat port5/vlan
vid 1
vid 42 pvid
Signed-off-by: Vivien Didelot
---
net/dsa/debugfs.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/net/dsa/debugfs.c b/net/dsa/debugfs.c
index 98c5068d20da..b00942368d29 100644
--- a/net/dsa/debug
Add a debug filesystem "mdb" entry to query a port's hardware MDB
entries through the .port_mdb_dump switch operation.
This is really convenient to query directly the hardware or inspect DSA
or CPU links, since these ports are not exposed to userspace.
Signed-off-by: Vivien Didelot &l
Add a debug filesystem "mdb" entry to query a port's hardware MDB
entries through the .port_mdb_dump switch operation.
This is really convenient to query directly the hardware or inspect DSA
or CPU links, since these ports are not exposed to userspace.
Signed-off-by: Vivien Didelot
--
:
6: 005f 6: 003f
7: 002a 7: 002a
...
where switch0 port5 and port6 are CPU and DSA ports of a ZII Rev B.
Vivien Didelot (11):
net: dsa: legacy: assign dst->applied
net: dsa: add debugfs interface
net: dsa: debugfs: add t
Add a debug filesystem "tag_protocol" entry to query the switch tagging
protocol through the .get_tag_protocol operation.
# cat switch1/tag_protocol
EDSA
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/ds
:
6: 005f 6: 003f
7: 002a 7: 002a
...
where switch0 port5 and port6 are CPU and DSA ports of a ZII Rev B.
Vivien Didelot (11):
net: dsa: legacy: assign dst->applied
net: dsa: add debugfs interface
net: dsa: debugfs: add t
Add a debug filesystem "tag_protocol" entry to query the switch tagging
protocol through the .get_tag_protocol operation.
# cat switch1/tag_protocol
EDSA
Signed-off-by: Vivien Didelot
---
net/dsa/debugfs.c | 54 ++
1 file c
This commit adds the boiler plate to create a DSA related debug
filesystem entry as well as a "tree" file, containing the tree index.
# cat switch1/tree
0
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa
This commit adds the boiler plate to create a DSA related debug
filesystem entry as well as a "tree" file, containing the tree index.
# cat switch1/tree
0
Signed-off-by: Vivien Didelot
---
net/dsa/debugfs.c | 108 ++
1 fi
The "applied" boolean of the dsa_switch_tree is only set in the new
bindings. This patch sets it in the legacy code as well.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/legacy.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/dsa/le
The "applied" boolean of the dsa_switch_tree is only set in the new
bindings. This patch sets it in the legacy code as well.
Signed-off-by: Vivien Didelot
---
net/dsa/legacy.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/dsa/legacy.c b/net/dsa/legacy.c
index 91
is not freed, and the original skb will be freed twice.
To fix that, move skb_put_padto inside both branches of the skb_tailroom
condition, before freeing the original skb, and free the copy on error.
Signed-off-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
---
net/dsa/tag_ksz.
is not freed, and the original skb will be freed twice.
To fix that, move skb_put_padto inside both branches of the skb_tailroom
condition, before freeing the original skb, and free the copy on error.
Signed-off-by: Vivien Didelot
---
net/dsa/tag_ksz.c | 13 +
1 file changed, 9 insertions
letter.)
The commit title prefix represents the most impacted subsystem, here
"net: dsa: xxx" would map the net/dsa/ or drivers/net/dsa directories.
Other than that, the whole patchset LGTM:
Reviewed-by: Vivien Didelot <vivien.dide...@savoirfairelinux.com>
Thanks,
Vivien
501 - 600 of 3273 matches
Mail list logo