Re: [PATCH iproute2 0/1] Fix s64 argument parsing

2019-07-29 Thread Kurt Kanzenbach
On Thu, Jul 04, 2019 at 02:24:26PM +0200, Kurt Kanzenbach wrote: > Hi, > > while using the TAPRIO Qdisc on ARM32 I've noticed that the base_time > parameter is > incorrectly configured. The problem is the utility function get_s64() used by > TAPRIO doesn't parse the v

Re: [PATCH net-next] net: dsa: set configure_vlan_while_not_filtering to true by default

2021-01-14 Thread Kurt Kanzenbach
omiscuous mode > [ 60.334905] br0: port 1(sw0p2) entered blocking state > [ 60.340142] br0: port 1(sw0p2) entered forwarding state > Warning: dsa_core: skipping configuration of VLAN. # This was the pvid > $ bridge vlan add dev sw0p2 vid 100 > Warning: dsa_core: skipping configuration of VLAN. > > Signed-off-by: Vladimir Oltean Reviewed-by: Kurt Kanzenbach signature.asc Description: PGP signature

[PATCH v2 net-next 1/1] net: dsa: hellcreek: Add TAPRIO offloading support

2021-01-16 Thread Kurt Kanzenbach
schedule up to eight seconds in the future. The TAPRIO interface provides an absolute base time. Therefore, periodic delayed work is leveraged to check whether a schedule may be started or not. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 298

[PATCH v2 net-next 0/1] net: dsa: hellcreek: Add TAPRIO offloading

2021-01-16 Thread Kurt Kanzenbach
: * https://lkml.kernel.org/netdev/20201121115703.23221-1-k...@linutronix.de/ Changes since v1: * Use taprio data structure * Calculate base_time if in past * Validate input parameters * Minor things Kurt Kanzenbach (1): net: dsa: hellcreek: Add TAPRIO offloading support drivers/net/dsa

Re: [PATCH v2 net-next 1/1] net: dsa: hellcreek: Add TAPRIO offloading support

2021-01-19 Thread Kurt Kanzenbach
On Tue Jan 19 2021, Jakub Kicinski wrote: > On Sat, 16 Jan 2021 13:49:22 +0100 Kurt Kanzenbach wrote: >> +if (base_time_ns - current_ns < (s64)8 * NSEC_PER_SEC) >> +return true; >> + >> +return false; > > nit: > return base_time_

Re: [RFC PATCH net-next 3/9] net: switchdev: remove the transaction structure from port attributes

2020-12-18 Thread Kurt Kanzenbach
| 7 +- > include/soc/mscc/ocelot.h | 3 +- > net/dsa/dsa_priv.h| 18 ++-- > net/dsa/port.c| 97 --- > net/dsa/slave.c | 17 ++-- > net/dsa/switch.c

Re: [RFC PATCH net-next 6/9] net: dsa: remove the transactional logic from VLAN objects

2020-12-18 Thread Kurt Kanzenbach
A and let drivers to propagate > errors directly from the .port_vlan_add callback. > > Signed-off-by: Vladimir Oltean Reviewed-by: Kurt Kanzenbach for the hellcreek part. Thanks, Kurt signature.asc Description: PGP signature

[PATCH net-next 0/2] net: dsa: hellcreek: Minor cleanups

2020-11-21 Thread Kurt Kanzenbach
Hi, fix two minor issues in the hellcreek driver. Thanks, Kurt Kurt Kanzenbach (2): net: dsa: tag_hellcreek: Cleanup includes net: dsa: hellcreek: Don't print error message on defer drivers/net/dsa/hirschmann/hellcreek.c | 2 +- net/dsa/tag_hellcreek.c| 4 +--- 2

[PATCH net-next 1/2] net: dsa: tag_hellcreek: Cleanup includes

2020-11-21 Thread Kurt Kanzenbach
Remove unused and add needed includes. No functional change. Suggested-by: Vladimir Oltean Signed-off-by: Kurt Kanzenbach --- net/dsa/tag_hellcreek.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/dsa/tag_hellcreek.c b/net/dsa/tag_hellcreek.c index 2061de06eafb

[PATCH net-next 2/2] net: dsa: hellcreek: Don't print error message on defer

2020-11-21 Thread Kurt Kanzenbach
When DSA is not loaded when the driver is probed an error message is printed. But, that's not really an error, just a defer. Use dev_err_probe() instead. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH net-next 1/1] net: dsa: hellcreek: Add TAPRIO offloading support

2020-11-21 Thread Kurt Kanzenbach
schedule up to eight seconds in the future. The TAPRIO interface provides an absolute base time. Therefore, periodic delayed work is leveraged to check whether a schedule may be started or not. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 314

[PATCH net-next 0/1] net: dsa: hellcreek: Add TAPRIO offloading

2020-11-21 Thread Kurt Kanzenbach
cks as delayed work is executed in user context and mutexes can be used which makes everything much simpler. Thanks, Kurt Kurt Kanzenbach (1): net: dsa: hellcreek: Add TAPRIO offloading support drivers/net/dsa/hirschmann/hellcreek.c | 314 + drivers/net/dsa/hirschmann/h

Re: [PATCH net-next 1/1] net: dsa: hellcreek: Add TAPRIO offloading support

2020-11-23 Thread Kurt Kanzenbach
On Mon Nov 23 2020, Vladimir Oltean wrote: > Hi Kurt, > > On Sat, Nov 21, 2020 at 12:57:03PM +0100, Kurt Kanzenbach wrote: >> The switch has support for the 802.1Qbv Time Aware Shaper (TAS). Traffic >> schedules may be configured individually on each front port. Each port ha

Re: [PATCH net-next v2 1/3] net: phy: dp83640: use new PTP_MSGTYPE_SYNC define

2020-11-24 Thread Kurt Kanzenbach
On Tue Nov 24 2020, Christian Eggers wrote: > Replace use of magic number with recently introduced define. > > Signed-off-by: Christian Eggers > Cc: Kurt Kanzenbach Reviewed-by: Kurt Kanzenbach signature.asc Description: PGP signature

Re: [PATCH][next] net: dsa: fix unintended sign extension on a u16 left shift

2020-11-09 Thread Kurt Kanzenbach
On Mon Nov 09 2020, Colin King wrote: > From: Colin Ian King > > The left shift of u16 variable high is promoted to the type int and > then sign extended to a 64 bit u64 value. If the top bit of high is > set then the upper 32 bits of the result end up being set by the > sign extension. Fix this

Re: [PATCH][next] net: dsa: fix unintended sign extension on a u16 left shift

2020-11-09 Thread Kurt Kanzenbach
; Addresses-Coverity: ("Unintended sign extension") > Fixes: e4b27ebc780f ("net: dsa: Add DSA driver for Hirschmann Hellcreek > switches") > Signed-off-by: Colin Ian King Reviewed-by: Kurt Kanzenbach signature.asc Description: PGP signature

re: net: dsa: hellcreek: Add support for hardware timestamping

2020-11-09 Thread Kurt Kanzenbach
Hi Colin, On Mon Nov 09 2020, Colin Ian King wrote: > Hi > > Static analysis on linux-next with Coverity has detected a potential > null pointer dereference issue on the following commit: > > commit f0d4ba9eff75a79fccb7793f4d9f12303d458603 > Author: Kamil Alkhouri > Date: Tue Nov 3 08:10:58 202

[PATCH net-next] MAINTAINERS: Add entry for Hirschmann Hellcreek Switch Driver

2020-11-09 Thread Kurt Kanzenbach
Add myself to cover the Hirschmann Hellcreek TSN Ethernet Switch Driver. Suggested-by: Andrew Lunn Signed-off-by: Kurt Kanzenbach --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2a0fde12b650..7fe936fc7e76 100644 --- a/MAINTAINERS

Re: [PATCH 10/10] dt-bindings: net: dsa: b53: Add YAML bindings

2020-11-10 Thread Kurt Kanzenbach
On Mon Nov 09 2020, Florian Fainelli wrote: > From: Kurt Kanzenbach > > Convert the b53 DSA device tree bindings to YAML in order to allow > for automatic checking and such. > > Suggested-by: Florian Fainelli > Signed-off-by: Kurt Kanzenbach > --- > .../devicetr

Re: [PATCH net-next] MAINTAINERS: Add entry for Hirschmann Hellcreek Switch Driver

2020-11-10 Thread Kurt Kanzenbach
On Tue Nov 10 2020, Vladimir Oltean wrote: > On Tue, Nov 10, 2020 at 08:18:29AM +0100, Kurt Kanzenbach wrote: >> Add myself to cover the Hirschmann Hellcreek TSN Ethernet Switch Driver. >> >> Suggested-by: Andrew Lunn >> Signed-off-by: Kurt Kanzenbach >> --- &g

Re: [PATCH] net: dsa: sja1105: Fix return value check in sja1105_ptp_clock_register()

2020-11-12 Thread Kurt Kanzenbach
On Thu Nov 12 2020, YueHaibing wrote: > drivers/net/dsa/sja1105/sja1105_ptp.c:869 sja1105_ptp_clock_register() warn: > passing zero to 'PTR_ERR' > > ptp_clock_register() returns ERR_PTR() and never returns > NULL. The NULL test should be removed. Which is not true. From the documentation: * Ret

Re: [PATCH v3 net-next 01/11] net: switchdev: remove vid_begin -> vid_end range from VLAN objects

2021-01-06 Thread Kurt Kanzenbach
On Thu Jan 07 2021, Vladimir Oltean wrote: > From: Vladimir Oltean > > The call path of a switchdev VLAN addition to the bridge looks something > like this today: > > nbp_vlan_init > | __br_vlan_set_default_pvid > | | | > | |br_afspec

Re: [PATCH] net: dsa: fix led_classdev build errors

2021-01-06 Thread Kurt Kanzenbach
ee': > (.text+0x1018): undefined reference to `led_classdev_unregister' > microblaze-linux-ld: (.text+0x1024): undefined reference to > `led_classdev_unregister' > > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Link: lore.kernel.org/r/202101060655.iuvmjqs2-...@int

Re: [PATCH v4 net-next 01/11] net: switchdev: remove vid_begin -> vid_end range from VLAN objects

2021-01-08 Thread Kurt Kanzenbach
x Spectrum supports offloading more than one VLAN at a time, > through mlxsw_sp_port_vlan_set. I have kept that code internal to the > driver, because there is some more bookkeeping that makes use of it, but > I deleted it from the switchdev API. But since the switchdev support for > ranges has already been de facto deleted by a Mellanox employee and > nobody noticed for 4 years, I'm going to assume it's not a biggie. > > Signed-off-by: Vladimir Oltean > Reviewed-by: Ido Schimmel # switchdev and mlxsw Reviewed-by: Kurt Kanzenbach # hellcreek signature.asc Description: PGP signature

Re: [RFC PATCH net-next 1/9] dt-bindings: net: dsa: convert ksz bindings document to yaml

2020-10-20 Thread Kurt Kanzenbach
On Mon Oct 19 2020, Christian Eggers wrote: > Convert the bindings document for Microchip KSZ Series Ethernet switches > from txt to yaml. A few comments/questions below. > diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > b/Documentation/devicetree/bindings/net/dsa/mic

Re: [RFC PATCH net-next 1/9] dt-bindings: net: dsa: convert ksz bindings document to yaml

2020-10-22 Thread Kurt Kanzenbach
On Wed Oct 21 2020, Florian Fainelli wrote: > On 10/21/2020 5:16 PM, Vladimir Oltean wrote: >> On Wed, Oct 21, 2020 at 08:52:01AM +0200, Kurt Kanzenbach wrote: >>> On Mon Oct 19 2020, Christian Eggers wrote: >>> The node names should be switch. See dsa.yaml. >&

[PATCH net-next v7 5/8] net: dsa: hellcreek: Add support for hardware timestamping

2020-10-28 Thread Kurt Kanzenbach
pen when a timestamp is read and at this point another message is timestamped. So, that lost bit is checked just in case to indicate to the user that the driver or the software is somewhat buggy. Signed-off-by: Kamil Alkhouri Signed-off-by: Kurt Kanzenbach Acked-by: Richard Cochran

[PATCH net-next v7 8/8] dt-bindings: net: dsa: Add documentation for Hellcreek switches

2020-10-28 Thread Kurt Kanzenbach
Add basic documentation and example. Signed-off-by: Kurt Kanzenbach Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- .../net/dsa/hirschmann,hellcreek.yaml | 127 ++ 1 file changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/net

[PATCH net-next v7 6/8] net: dsa: hellcreek: Add PTP status LEDs

2020-10-28 Thread Kurt Kanzenbach
be activated if the current device is in sync with the network time. Expose these via the LED framework to be controlled via user space e.g. linuxptp. Signed-off-by: Kurt Kanzenbach Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- drivers/net/dsa/hirschmann/hellcreek.h | 4

[PATCH net-next v7 1/8] net: dsa: Add tag handling for Hirschmann Hellcreek switches

2020-10-28 Thread Kurt Kanzenbach
ntation is based on that code. Signed-off-by: Kurt Kanzenbach Reviewed-by: Florian Fainelli Reviewed-by: Vladimir Oltean --- include/net/dsa.h | 2 + net/dsa/Kconfig | 6 +++ net/dsa/Makefile| 1 + net/dsa/tag_hellcreek.c | 102 +++

[PATCH net-next v7 3/8] net: dsa: Add DSA driver for Hirschmann Hellcreek switches

2020-10-28 Thread Kurt Kanzenbach
handling * FDB handling * Port statistics * STP * Phylink Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/Kconfig |2 + drivers/net/dsa/Makefile |1 + drivers/net/dsa/hirschmann/Kconfig|8 + drivers/net/dsa/hirschmann

[PATCH net-next v7 4/8] net: dsa: hellcreek: Add PTP clock support

2020-10-28 Thread Kurt Kanzenbach
hirschmann/hellcreek_ptp.c b/drivers/net/dsa/hirschmann/hellcreek_ptp.c new file mode 100644 index ..856fcb9ba3c6 --- /dev/null +++ b/drivers/net/dsa/hirschmann/hellcreek_ptp.c @@ -0,0 +1,283 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * DSA driver for: + * Hirschmann He

[PATCH net-next v7 7/8] dt-bindings: Add vendor prefix for Hirschmann

2020-10-28 Thread Kurt Kanzenbach
Hirschmann is building devices for automation and networking. Add them to the vendor prefixes. Signed-off-by: Kurt Kanzenbach Reviewed-by: Florian Fainelli Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH net-next v7 2/8] net: dsa: Give drivers the chance to veto certain upper devices

2020-10-28 Thread Kurt Kanzenbach
y can only accept an 8021q upper on a port as long as it isn't installed on any other port too. So give them the chance to veto bad user requests. Signed-off-by: Vladimir Oltean Signed-off-by: Kurt Kanzenbach --- include/net/dsa.h | 6 ++ net/dsa/slave.c | 12 2 files changed

[PATCH net-next v7 0/8] Hirschmann Hellcreek DSA driver

2020-10-28 Thread Kurt Kanzenbach
L DT bindings * Richard Cochran * Fix typo * Add missing NULL checks Kamil Alkhouri (2): net: dsa: hellcreek: Add PTP clock support net: dsa: hellcreek: Add support for hardware timestamping Kurt Kanzenbach (5): net: dsa: Add tag handling for Hirschmann Hellcreek switches net: dsa: A

Re: [PATCH v2 net-next 01/12] net: dsa: implement a central TX reallocation procedure

2020-10-29 Thread Kurt Kanzenbach
need to be unshared. > The tx_reallocs counter should prove that. > > Signed-off-by: Vladimir Oltean > Tested-by: Christian Eggers # For tail taggers only Tested-by: Kurt Kanzenbach I'll wait with the hellcreek series until this is merged. Thanks, Kurt signature.asc Description: PGP signature

[PATCH net-next v8 1/8] net: dsa: Add tag handling for Hirschmann Hellcreek switches

2020-11-02 Thread Kurt Kanzenbach
ntation is based on that code. Signed-off-by: Kurt Kanzenbach --- include/net/dsa.h | 2 ++ net/dsa/Kconfig | 6 net/dsa/Makefile| 1 + net/dsa/tag_hellcreek.c | 66 + 4 files changed, 75 insertions(+) create mode 1006

[PATCH net-next v8 3/8] net: dsa: Add DSA driver for Hirschmann Hellcreek switches

2020-11-02 Thread Kurt Kanzenbach
handling * FDB handling * Port statistics * STP * Phylink Signed-off-by: Kurt Kanzenbach Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- drivers/net/dsa/Kconfig |2 + drivers/net/dsa/Makefile |1 + drivers/net/dsa/hirschmann

[PATCH net-next v8 2/8] net: dsa: Give drivers the chance to veto certain upper devices

2020-11-02 Thread Kurt Kanzenbach
y can only accept an 8021q upper on a port as long as it isn't installed on any other port too. So give them the chance to veto bad user requests. Signed-off-by: Vladimir Oltean [Kurt: Pass info instead of ptr] Signed-off-by: Kurt Kanzenbach Reviewed-by: Florian Fainelli --- include/net/dsa.h |

[PATCH net-next v8 0/8] Hirschmann Hellcreek DSA driver

2020-11-02 Thread Kurt Kanzenbach
checks Kamil Alkhouri (2): net: dsa: hellcreek: Add PTP clock support net: dsa: hellcreek: Add support for hardware timestamping Kurt Kanzenbach (5): net: dsa: Add tag handling for Hirschmann Hellcreek switches net: dsa: Add DSA driver for Hirschmann Hellcreek switches net: dsa: hellcreek: A

[PATCH net-next v8 8/8] dt-bindings: net: dsa: Add documentation for Hellcreek switches

2020-11-02 Thread Kurt Kanzenbach
Add basic documentation and example. Signed-off-by: Kurt Kanzenbach Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- .../net/dsa/hirschmann,hellcreek.yaml | 127 ++ 1 file changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/net

[PATCH net-next v8 7/8] dt-bindings: Add vendor prefix for Hirschmann

2020-11-02 Thread Kurt Kanzenbach
Hirschmann is building devices for automation and networking. Add them to the vendor prefixes. Signed-off-by: Kurt Kanzenbach Reviewed-by: Florian Fainelli Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH net-next v8 6/8] net: dsa: hellcreek: Add PTP status LEDs

2020-11-02 Thread Kurt Kanzenbach
be activated if the current device is in sync with the network time. Expose these via the LED framework to be controlled via user space e.g. linuxptp. Signed-off-by: Kurt Kanzenbach Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- drivers/net/dsa/hirschmann/hellcreek.h | 4

[PATCH net-next v8 5/8] net: dsa: hellcreek: Add support for hardware timestamping

2020-11-02 Thread Kurt Kanzenbach
pen when a timestamp is read and at this point another message is timestamped. So, that lost bit is checked just in case to indicate to the user that the driver or the software is somewhat buggy. Signed-off-by: Kamil Alkhouri Signed-off-by: Kurt Kanzenbach Acked-by: Richard Cochran

[PATCH net-next v8 4/8] net: dsa: hellcreek: Add PTP clock support

2020-11-02 Thread Kurt Kanzenbach
hirschmann/hellcreek_ptp.c b/drivers/net/dsa/hirschmann/hellcreek_ptp.c new file mode 100644 index ..856fcb9ba3c6 --- /dev/null +++ b/drivers/net/dsa/hirschmann/hellcreek_ptp.c @@ -0,0 +1,283 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * DSA driver for: + * Hirschmann He

Re: [PATCH] net/ethernet: update ret when ptp_clock is ERROR

2020-11-06 Thread Kurt Kanzenbach
On Fri Nov 06 2020, Arnd Bergmann wrote: > On Fri, Nov 6, 2020 at 12:35 PM Grygorii Strashko > wrote: >> On 06/11/2020 09:56, Wang Qing wrote: > >> > +++ b/drivers/net/ethernet/ti/am65-cpts.c >> > @@ -1001,8 +1001,7 @@ struct am65_cpts *am65_cpts_create(struct device >> > *dev, void __iomem *regs

Re: [net-next 1/3] net: dsa: optimize tx timestamp request handling

2021-04-18 Thread Kurt Kanzenbach
ailure of > port_txtstamp (this may usually happen), the skb clone has to be freed. > So put skb cloning into port_txtstamp where it really needs. > > Signed-off-by: Yangbo Lu PTP still works. Tested-by: Kurt Kanzenbach # hellcreek signature.asc Description: PGP signature

[PATCH net v2] igb: Fix XDP with PTP enabled

2021-04-19 Thread Kurt Kanzenbach
ng any XDP operations and adjust all other code accordingly. The igc driver does it like that as well. Tested with Intel i210 card and AF_XDP sockets. Fixes: 9cbc948b5a20 ("igb: add XDP support") Signed-off-by: Kurt Kanzenbach --- Changes since v1: * Use xdp_prepare_buff() (Lorenz

[PATCH net-next] net/packet: Reset MAC header for direct packet transmission

2021-03-26 Thread Kurt Kanzenbach
here ] |[ 112.731418] WARNING: CPU: 1 PID: 257 at net/hsr/hsr_forward.c:560 hsr_forward_skb+0x484/0x568 |[ 112.739962] net/hsr/hsr_forward.c:560: Malformed frame (port_src hsr0) The MAC header is also reset unconditionally in case of PACKET_QDISC_BYPASS is not used. Signed-off-by: Kurt Kanzenbach ---

Re: [PATCH net-next] net/packet: Reset MAC header for direct packet transmission

2021-03-29 Thread Kurt Kanzenbach
On Sun Mar 28 2021, Willem de Bruijn wrote: > On Fri, Mar 26, 2021 at 11:49 AM Kurt Kanzenbach wrote: >> >> Reset MAC header in case of using packet_direct_xmit(), e.g. by specifying >> PACKET_QDISC_BYPASS. This is needed, because other code such as the HSR layer >> e

[PATCH net v2] net: Reset MAC header for direct packet transmission

2021-03-29 Thread Kurt Kanzenbach
Fixes: d346a3fae3ff ("packet: introduce PACKET_QDISC_BYPASS socket option") Signed-off-by: Kurt Kanzenbach --- Changes since v1: * Move skb_reset_mac_header() to __dev_direct_xmit() * Add Fixes tag * Target net tree Previous versions: * https://lkml.kernel.org/netdev/202103261

Re: [PATCH net v2] net: Reset MAC header for direct packet transmission

2021-03-29 Thread Kurt Kanzenbach
On Mon Mar 29 2021, Eric Dumazet wrote: > Note that last year, I addressed the issue differently in commit > 96cc4b69581db68efc9749ef32e9cf8e0160c509 > ("macvlan: do not assume mac_header is set in macvlan_broadcast()") > (amended with commit 1712b2fff8c682d145c7889d2290696647d82dab > "macvlan: use

[PATCH net v3] net: hsr: Reset MAC header for Tx path

2021-04-06 Thread Kurt Kanzenbach
introduce PACKET_QDISC_BYPASS socket option") Signed-off-by: Kurt Kanzenbach --- Changes since v2: * Move skb_reset_mac_header() to hsr_dev_xmit() * Remove HSR malformed frame warning Changes since v1: * Move skb_reset_mac_header() to __dev_direct_xmit() * Add Fixes tag * Target net

[PATCH RFC net] igb: Fix XDP with PTP enabled

2021-04-12 Thread Kurt Kanzenbach
ng any XDP operations and adjust all other code accordingly. The igc driver does it like that as well. Tested with Intel i210 card and AF_XDP sockets. Fixes: 9cbc948b5a20 ("igb: add XDP support") Signed-off-by: Kurt Kanzenbach --- drivers/net/ethernet/intel/igb/igb.h | 3 +-

Re: [RFC v4 net-next 3/4] dt-bindings: net: dsa: add MT7530 interrupt controller binding

2021-04-12 Thread Kurt Kanzenbach
On Mon Apr 12 2021, DENG Qingfang wrote: > Add device tree binding to support MT7530 interrupt controller. > > Signed-off-by: DENG Qingfang > Reviewed-by: Andrew Lunn > --- > RFC v3 -> RFC v4: > - Add #interrupt-cells property. > > Documentation/devicetree/bindings/net/dsa/mt7530.txt | 6 ++

Re: [PATCH RFC net] igb: Fix XDP with PTP enabled

2021-04-13 Thread Kurt Kanzenbach
On Mon Apr 12 2021, Jesper Dangaard Brouer wrote: > On Mon, 12 Apr 2021 12:17:13 +0200 > Kurt Kanzenbach wrote: > >> When using native XDP with the igb driver, the XDP frame data doesn't point >> to >> the beginning of the packet. It's off by 16 bytes. Eve

Re: [PATCH RFC net] igb: Fix XDP with PTP enabled

2021-04-13 Thread Kurt Kanzenbach
On Tue Apr 13 2021, Alexander Duyck wrote: > On Mon, Apr 12, 2021 at 7:29 AM Jesper Dangaard Brouer > wrote: >> > +ktime_t igb_ptp_rx_pktstamp(struct igb_q_vector *q_vector, void *va) >> > { >> > struct igb_adapter *adapter = q_vector->adapter; >> > + struct skb_shared_hwtstamps ts; >>

[PATCH net] igb: Fix XDP with PTP enabled

2021-04-15 Thread Kurt Kanzenbach
ng any XDP operations and adjust all other code accordingly. The igc driver does it like that as well. Tested with Intel i210 card and AF_XDP sockets. Fixes: 9cbc948b5a20 ("igb: add XDP support") Signed-off-by: Kurt Kanzenbach --- Changes since RFC: * Removed unused return value d

Re: [PATCH net] igb: Fix XDP with PTP enabled

2021-04-15 Thread Kurt Kanzenbach
On Thu Apr 15 2021, Jesper Dangaard Brouer wrote: > On Thu, 15 Apr 2021 11:21:45 +0200 > Kurt Kanzenbach wrote: > >> When using native XDP with the igb driver, the XDP frame data doesn't point >> to >> the beginning of the packet. It's off by 16 bytes. Eve

Re: [PATCH net] igb: Fix XDP with PTP enabled

2021-04-15 Thread Kurt Kanzenbach
On Thu Apr 15 2021, Lorenzo Bianconi wrote: > [...] >> @@ -8683,7 +8676,10 @@ static int igb_clean_rx_irq(struct igb_q_vector >> *q_vector, const int budget) >> while (likely(total_packets < budget)) { >> union e1000_adv_rx_desc *rx_desc; >> struct igb_rx_buffer *rx_

Re: [PATCH net] igb: Fix XDP with PTP enabled

2021-04-15 Thread Kurt Kanzenbach
On Thu Apr 15 2021, Jesper Dangaard Brouer wrote: > I have a project involving i225+igc (using TSN). And someone suggested > that I also looked at i210 for TSN. I've ordered hardware that have > i210 on motherboard (and I will insert my i225 card) so I have a system > with both chips for experime

[PATCH v3 net-next 0/1] net: dsa: hellcreek: Add TAPRIO offloading

2021-01-23 Thread Kurt Kanzenbach
data structure * Calculate base_time if in past * Validate input parameters * Minor things Kurt Kanzenbach (1): net: dsa: hellcreek: Add TAPRIO offloading support drivers/net/dsa/hirschmann/hellcreek.c | 303 - drivers/net/dsa/hirschmann/hellcreek.h | 17 +- 2 files

[PATCH v3 net-next 1/1] net: dsa: hellcreek: Add TAPRIO offloading support

2021-01-23 Thread Kurt Kanzenbach
schedule up to eight seconds in the future. The TAPRIO interface provides an absolute base time. Therefore, periodic delayed work is leveraged to check whether a schedule may be started or not. Signed-off-by: Kurt Kanzenbach Reviewed-by: Vladimir Oltean --- drivers/net/dsa/hirschmann/hellcreek.c | 303

Re: [PATCH net-next v3 5/8] igc: Avoid TX Hangs because long cycles

2021-01-27 Thread Kurt Kanzenbach
On Tue Jan 26 2021, Vladimir Oltean wrote: > On Fri, Jan 22, 2021 at 02:44:50PM -0800, Vinicius Costa Gomes wrote: >> Avoid possible TX Hangs caused by using long Qbv cycles. In some >> cases, using long cycles (more than 1 second) can cause transmissions >> to be blocked for that time. As the TX H

[PATCH net-next] net: dsa: hellcreek: Add missing TAPRIO dependency

2021-01-28 Thread Kurt Kanzenbach
fc6eb39b2 ("net: dsa: hellcreek: Add TAPRIO offloading support") Reported-by: Randy Dunlap Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/Kconfig | 1 + 1 file changed, 1 insertion(+) Note: It's not against net, because the fixed commit is not in net tree, yet. diff --git a

Re: linux-next: Tree for Jan 28 [drivers/net/dsa/hirschmann/hellcreek_sw]

2021-01-28 Thread Kurt Kanzenbach
On Thu Jan 28 2021, Randy Dunlap wrote: > On 1/28/21 1:11 AM, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20210127: >> > > > on i386: > > ERROR: modpost: "taprio_offload_get" > [drivers/net/dsa/hirschmann/hellcreek_sw.ko] undefined! > ERROR: modpost: "taprio_offload_free" > [drivers/

[PATCH net-next 1/2] net: dsa: hellcreek: Report VLAN table occupancy

2021-01-30 Thread Kurt Kanzenbach
The VLAN membership configuration is cached in software already. So, it can be reported via devlink. Add support for it: |root@tsn:~# devlink resource show platform/ff24.switch |platform/ff24.switch: | name VLAN size 4096 occ 4 unit entry dpipe_tables none Signed-off-by: Kurt Kanzenbach

[PATCH net-next 2/2] net: dsa: hellcreek: Report FDB table occupancy

2021-01-30 Thread Kurt Kanzenbach
dpipe_tables none Suggested-by: Florian Fainelli Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 46 ++ drivers/net/dsa/hirschmann/hellcreek.h | 1 + 2 files changed, 40 insertions(+), 7 deletions(-) diff --git a/drivers/net/dsa/hirschmann

[PATCH net-next 0/2] net: dsa: hellcreek: Report tables sizes

2021-01-30 Thread Kurt Kanzenbach
Hi, Florian, Andrew and Vladimir suggested at some point to use devlink for reporting tables, features and debugging counters instead of using debugfs and printk. So, start by reporting the VLAN and FDB table sizes. Thanks, Kurt Kurt Kanzenbach (2): net: dsa: hellcreek: Report VLAN table

Re: [PATCH net-next 0/2] net: dsa: hellcreek: Report tables sizes

2021-02-01 Thread Kurt Kanzenbach
On Sun Jan 31 2021, Vladimir Oltean wrote: > On Sat, Jan 30, 2021 at 02:59:32PM +0100, Kurt Kanzenbach wrote: >> Florian, Andrew and Vladimir suggested at some point to use devlink for >> reporting tables, features and debugging counters instead of using debugfs >> and >&g

Re: [PATCH net] net: dsa: only unset VLAN filtering when last port leaves last VLAN-aware bridge

2021-03-08 Thread Kurt Kanzenbach
Hi Vladimir, On Mon Mar 08 2021, Vladimir Oltean wrote: > From: Vladimir Oltean > > DSA is aware of switches with global VLAN filtering since the blamed > commit, but it makes a bad decision when multiple bridges are spanning > the same switch: > > ip link add br0 type bridge vlan_filtering 1 > i

[PATCH net-next 5/6] net: dsa: hellcreek: Move common code to helper

2021-03-11 Thread Kurt Kanzenbach
There are two functions which need to populate fdb entries. Move that to a helper function. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 85 +- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a/drivers/net/dsa/hirschmann

[PATCH net-next 1/6] net: dsa: hellcreek: Report RAM usage

2021-03-11 Thread Kurt Kanzenbach
entry dpipe_tables none | name RAM size 320 occ 14 unit entry dpipe_tables none Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 38 -- drivers/net/dsa/hirschmann/hellcreek.h | 2 ++ 2 files changed, 37 insertions(+), 3 deletions(-) diff

[PATCH net-next 4/6] net: dsa: hellcreek: Use boolean value

2021-03-11 Thread Kurt Kanzenbach
hellcreek_select_vlan() takes a boolean instead of an integer. So, use false accordingly. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/hirschmann/hellcreek.c b/drivers/net/dsa

[PATCH net-next 3/6] net: dsa: hellcreek: Add devlink VLAN region

2021-03-11 Thread Kurt Kanzenbach
Allow to dump the VLAN table via devlink. This especially useful, because the driver internally leverages VLANs for the port separation. These are not visible via the bridge utility. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 73

[PATCH net-next 2/6] net: dsa: hellcreek: Report META data usage

2021-03-11 Thread Kurt Kanzenbach
size 256 occ 6 unit entry dpipe_tables none | name RAM size 320 occ 14 unit entry dpipe_tables none | name META size 320 occ 5 unit entry dpipe_tables none Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 36 -- drivers/net/dsa/hirschmann

[PATCH net-next 0/6] net: dsa: hellcreek: Add support for dumping tables

2021-03-11 Thread Kurt Kanzenbach
Hi, add support for dumping the VLAN and FDB table via devlink. As the driver uses internal VLANs and static FDB entries, this is a useful debugging feature. Also report the current memory and descriptor usage. Thanks, Kurt Kurt Kanzenbach (6): net: dsa: hellcreek: Report RAM usage net: dsa

[PATCH net-next 6/6] net: dsa: hellcreek: Add devlink FDB region

2021-03-11 Thread Kurt Kanzenbach
Allow to dump the FDB table via devlink. This is a useful debugging feature. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 63 ++ drivers/net/dsa/hirschmann/hellcreek.h | 1 + 2 files changed, 64 insertions(+) diff --git a/drivers/net/dsa

[PATCH RFC net-next] taprio: Handle short intervals and large packets

2021-03-12 Thread Kurt Kanzenbach
s/sec0 sender |[ 5] 0.00-10.02 sec 48.7 MBytes 40.7 Mbits/sec receiver Signed-off-by: Kurt Kanzenbach --- net/sched/sch_taprio.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/net/sched/sch_taprio.c b/net/

Re: [PATCH net-next 2/6] net: dsa: hellcreek: Report META data usage

2021-03-12 Thread Kurt Kanzenbach
On Fri Mar 12 2021, Vladimir Oltean wrote: > On Thu, Mar 11, 2021 at 11:52:41PM +0100, Andrew Lunn wrote: >> On Thu, Mar 11, 2021 at 06:53:40PM +0100, Kurt Kanzenbach wrote: >> > Report the META data descriptor usage via devlink. >> >> Jakubs question is also releva

[PATCH net-next v2 4/4] net: dsa: hellcreek: Add devlink FDB region

2021-03-13 Thread Kurt Kanzenbach
Allow to dump the FDB table via devlink. This is a useful debugging feature. Signed-off-by: Kurt Kanzenbach Reviewed-by: Andrew Lunn --- drivers/net/dsa/hirschmann/hellcreek.c | 62 ++ drivers/net/dsa/hirschmann/hellcreek.h | 1 + 2 files changed, 63 insertions

[PATCH net-next v2 2/4] net: dsa: hellcreek: Use boolean value

2021-03-13 Thread Kurt Kanzenbach
hellcreek_select_vlan() takes a boolean instead of an integer. So, use false accordingly. Signed-off-by: Kurt Kanzenbach Reviewed-by: Andrew Lunn --- drivers/net/dsa/hirschmann/hellcreek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/hirschmann

[PATCH net-next v2 3/4] net: dsa: hellcreek: Move common code to helper

2021-03-13 Thread Kurt Kanzenbach
There are two functions which need to populate fdb entries. Move that to a helper function. Signed-off-by: Kurt Kanzenbach Reviewed-by: Andrew Lunn --- drivers/net/dsa/hirschmann/hellcreek.c | 85 +- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a

[PATCH net-next v2 1/4] net: dsa: hellcreek: Add devlink VLAN region

2021-03-13 Thread Kurt Kanzenbach
Allow to dump the VLAN table via devlink. This especially useful, because the driver internally leverages VLANs for the port separation. These are not visible via the bridge utility. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 74

[PATCH net-next v2 0/4] net: dsa: hellcreek: Add support for dumping tables

2021-03-13 Thread Kurt Kanzenbach
: * https://lkml.kernel.org/netdev/20210311175344.3084-1-k...@kmk-computers.de/ Thanks, Kurt Kurt Kanzenbach (4): net: dsa: hellcreek: Add devlink VLAN region net: dsa: hellcreek: Use boolean value net: dsa: hellcreek: Move common code to helper net: dsa: hellcreek: Add devlink FDB region

[PATCH net-next] net: dsa: hellcreek: Offload bridge port flags

2021-03-14 Thread Kurt Kanzenbach
The switch implements unicast and multicast filtering per port. Add support for it. By default filtering is disabled. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 129 - 1 file changed, 104 insertions(+), 25 deletions(-) diff --git a

Re: [PATCH net-next v2 4/4] net: dsa: hellcreek: Add devlink FDB region

2021-03-14 Thread Kurt Kanzenbach
On Sat Mar 13 2021, Vladimir Oltean wrote: > On Sat, Mar 13, 2021 at 10:39:39AM +0100, Kurt Kanzenbach wrote: >> Allow to dump the FDB table via devlink. This is a useful debugging feature. >> >> Signed-off-by: Kurt Kanzenbach >> Reviewed-by: Andrew Lunn >> ---

Re: [PATCH RFC net-next] taprio: Handle short intervals and large packets

2021-03-15 Thread Kurt Kanzenbach
On Fri Mar 12 2021, Vinicius Costa Gomes wrote: > My first worry was whether the segments had the same tstamp as their > parent, and it seems that they do, so everything should just work with > etf or the txtime-assisted mode. > > I just want to play with this patch a bit and see how it works in >

Re: [PATCH net-next] net: dsa: hellcreek: Offload bridge port flags

2021-03-15 Thread Kurt Kanzenbach
On Mon Mar 15 2021, Vladimir Oltean wrote: > On Sun, Mar 14, 2021 at 01:52:08PM +0100, Kurt Kanzenbach wrote: >> +if (enable) >> +val &= ~HR_PTCFG_UUC_FLT; >> +else >> +val |= HR_PTCFG_UUC_FLT; > > What does 'unknown

Re: [PATCH net-next] net: dsa: hellcreek: Offload bridge port flags

2021-03-16 Thread Kurt Kanzenbach
On Mon Mar 15 2021, Vladimir Oltean wrote: > On Mon, Mar 15, 2021 at 09:33:44PM +0100, Kurt Kanzenbach wrote: >> On Mon Mar 15 2021, Vladimir Oltean wrote: >> > On Sun, Mar 14, 2021 at 01:52:08PM +0100, Kurt Kanzenbach wrote: >> >> + if (enable) >> &

[PATCH net-next 1/1] taprio: Handle short intervals and large packets

2021-03-18 Thread Kurt Kanzenbach
0 sender |[ 5] 0.00-10.02 sec 48.7 MBytes 40.7 Mbits/sec receiver Furthermore, the segmentation can be skipped for the full offload case, as the driver or the hardware is expected to handle this. Signed-off-by: Kurt Kanzenbach --- net/sched/sch_taprio.c

[PATCH net-next 0/1] taprio: Handle short intervals and large packets

2021-03-18 Thread Kurt Kanzenbach
: * Move segmentation, so that timestamps for tx assisted mode are calculated for the segments * Skip it for the full hardware offloading case Previous versions: * https://lkml.kernel.org/netdev/20210312092823.1429-1-k...@linutronix.de/ Kurt Kanzenbach (1): taprio: Handle short intervals

[PATCH net-next] net: dsa: hellcreek: Report switch name and ID

2021-03-20 Thread Kurt Kanzenbach
Report the driver name, ASIC ID and the switch name via devlink. This is a useful information for user space tooling. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 18 ++ .../linux/platform_data/hirschmann-hellcreek.h | 1 + 2 files changed

Re: [PATCH net-next v2 4/4] net: dsa: hellcreek: Add devlink FDB region

2021-03-20 Thread Kurt Kanzenbach
On Sun Mar 14 2021, Kurt Kanzenbach wrote: > On Sat Mar 13 2021, Vladimir Oltean wrote: >> On Sat, Mar 13, 2021 at 10:39:39AM +0100, Kurt Kanzenbach wrote: >>> Allow to dump the FDB table via devlink. This is a useful debugging feature. >>> >>> Signed-off-

Re: [PATCH net-next] net: dsa: hellcreek: Report switch name and ID

2021-03-22 Thread Kurt Kanzenbach
On Sat Mar 20 2021, Andrew Lunn wrote: >> +static int hellcreek_devlink_info_get(struct dsa_switch *ds, >> + struct devlink_info_req *req, >> + struct netlink_ext_ack *extack) >> +{ >> +struct hellcreek *hellcreek = ds->priv; >>

[PATCH net-next v2] net: dsa: hellcreek: Report switch name and ID

2021-03-22 Thread Kurt Kanzenbach
Report the driver name, ASIC ID and the switch name via devlink. This is a useful information for user space tooling. Signed-off-by: Kurt Kanzenbach --- Changes since v1: * Include just the model name in ASIC ID drivers/net/dsa/hirschmann/hellcreek.c | 18 ++ .../linux

Re: [PATCH v3 net] net: dsa: only unset VLAN filtering when last port leaves last VLAN-aware bridge

2021-03-24 Thread Kurt Kanzenbach
le doing that. > > This patch checks whether any port exists at all and is under a > VLAN-aware bridge. > > Fixes: d371b7c92d19 ("net: dsa: Unset vlan_filtering when ports leave the > bridge") > Signed-off-by: Vladimir Oltean > Tested-by: Florian Fainelli > Reviewed-by: Florian Fainelli Reviewed-by: Kurt Kanzenbach signature.asc Description: PGP signature

[PATCH v4 1/9] ptp: Add generic ptp v2 header parsing function

2020-08-18 Thread Kurt Kanzenbach
: Russell King Signed-off-by: Kurt Kanzenbach Reviewed-by: Richard Cochran Reviewed-by: Florian Fainelli --- include/linux/ptp_classify.h | 44 net/core/ptp_classifier.c| 30 2 files changed, 74 insertions(+) diff --git a/include

[PATCH v4 4/9] mlxsw: spectrum_ptp: Use generic helper function

2020-08-18 Thread Kurt Kanzenbach
In order to reduce code duplication between ptp drivers, generic helper functions were introduced. Use them. Signed-off-by: Kurt Kanzenbach Reviewed-and-tested-by: Petr Machata Reviewed-by: Florian Fainelli --- .../ethernet/mellanox/mlxsw/spectrum_ptp.c| 32 --- 1 file

[PATCH v4 2/9] ptp: Add generic ptp message type function

2020-08-18 Thread Kurt Kanzenbach
The message type is located at different offsets within the ptp header depending on the ptp version (v1 or v2). Therefore, drivers which also deal with ptp v1 have some code for it. Extract this into a helper function for drivers to be used. Signed-off-by: Kurt Kanzenbach Reviewed-by: Richard

  1   2   3   4   >