Commit Graph
3041 Commits
Author SHA1 Message Date
Florian Pose 2f7f884f1c Merge branch 'protect-datagram-fields' into 'stable-1.6'
Re-ordering protection for datagram fields

See merge request etherlab.org/ethercat!203
2026-07-16 14:07:09 +02:00
Florian Pose e31d897563 Merge branch '226-issue-splitting-domain-into-several-datagrams' into 'stable-1.6'
Prevent creating too large datagrams

See merge request etherlab.org/ethercat!205
2026-07-16 14:03:21 +02:00
Florian Pose eeec8a4f81 More general approach: Check for maximum datagram size in pre-alloc. 2026-07-16 13:52:53 +02:00
Florian Pose 2faafd771c Complain if a single FMMU config would exceed the maximum datagram size. 2026-07-15 16:19:29 +02:00
Florian Pose 46a2118ad9 Fixed typo in comment. 2026-07-15 16:05:36 +02:00
Florian Pose 80570b2d98 Merge branch 'run-precommit' into 'stable-1.6'
Run pre-commit checks also in CI

See merge request etherlab.org/ethercat!201
2026-07-15 15:52:28 +02:00
Florian Pose 4151f507ff Fixed line breaks. 2026-07-15 15:04:48 +02:00
Florian Pose fff9c1efb7 Merge branch 'stable-1.6' into run-precommit 2026-07-15 14:58:15 +02:00
Florian Pose c569080e2f NEWS entry. 2026-07-15 14:04:46 +02:00
Florian Pose 754d0e548a Improved smp_store positions. 2026-07-15 13:45:50 +02:00
Florian Pose b4217e93b0 Moved SMP macros to smp.h 2026-07-15 13:41:25 +02:00
Florian Pose ef425519db Moved definition of smp macros to globals. 2026-07-15 12:54:34 +02:00
Florian Pose 4397873738 General re-odering barrier for datagrams. 2026-07-15 12:46:26 +02:00
Florian Pose 81c95a7800 Merge branch 'stable-1.6' into protect-datagram-fields 2026-07-15 10:50:08 +02:00
Florian Pose 18876aa2bc Merge branch 'cpplint' into 'stable-1.6'
Added cpplint checks in pre-commit hooks

See merge request etherlab.org/ethercat!202
2026-07-15 10:48:52 +02:00
Florian Pose 12e2d700bb Only check on changed or added files at merge requests. 2026-07-15 10:47:57 +02:00
Florian Pose 55cb7bc246 Accepted some cpplint suggestions. 2026-07-15 10:42:14 +02:00
Florian Pose b3cd2c2e5a Documented the existence of the pre-commit configuration. 2026-07-15 10:39:08 +02:00
Florian Pose 687872df99 Added pre-commit hook with cpplint. 2026-07-15 10:31:32 +02:00
Florian Pose 3102ba20c1 Merge branch 'stable-1.6' into protect-datagram-fields 2026-07-15 09:55:03 +02:00
Florian Pose 74e1d2623c Fixed typo 2026-07-14 19:13:43 +02:00
Florian Pose 97b070b435 Fixed typo. 2026-07-14 19:07:06 +02:00
Florian Pose 60164f0ada Fixed 1.5 link. 2026-07-14 19:05:48 +02:00
Florian Pose 44eb2e6f18 Line breaks. 2026-07-14 19:03:26 +02:00
Florian Pose 83e1e479e4 Improved quote. 2026-07-14 18:57:31 +02:00
Florian Pose a27db36a33 Followed markdownlint guidelines and fixed broken links. 2026-07-14 18:54:39 +02:00
Florian Pose 361ac90ae2 Run pre-commit checks also in CI. 2026-07-14 18:04:53 +02:00
Florian Pose c4b4ac405f Merge commit 'c55771032b363c7c6f05591a9ba1da671cc8a69a' into HEAD 1.6.10 2026-07-14 17:55:29 +02:00
Florian Pose 44b6448592 Adjusted NEWS.md file acc. to markdownlint. 2026-07-14 17:54:47 +02:00
Florian Pose 77bcf82b86 Added pre-commit config with some basic checks. 2026-07-14 17:50:10 +02:00
Florian Pose c55771032b Cleaned-up NEWS.md file. 2026-07-14 17:31:10 +02:00
Florian Pose 34ccbcb1f5 Version bump to 1.6.10. 2026-07-14 17:18:48 +02:00
Florian Pose a6b03ffeaa Merge branch 'security-fixes' into 'stable-1.6'
Security fixes

See merge request etherlab.org/ethercat!200
2026-07-14 17:07:29 +02:00
Florian Pose 9c50b8a25d Test for re-ordering problem during synchrony check. 2026-07-14 11:36:19 +02:00
Florian Pose e257b4af52 Check for malicious EoE frame details. 2026-07-13 15:01:12 +02:00
Florian Pose 1c91a721ca Fixed re-allocation of SoE request buffer. 2026-07-13 13:56:31 +02:00
Florian Pose 7251b6c7be Fixed typos. 2026-07-13 13:44:22 +02:00
Florian Pose f4a1204be2 Improved error message 2026-07-13 13:41:53 +02:00
Florian Pose 5b16117c1f Protect rec_size calculation in FoE. 2026-07-13 13:32:53 +02:00
Florian Pose 6e60da92cd Merge branch 'add-macb-rp1-driver' into 'stable-1.6'
Added macb (Cadence GEM / RP1) driver for kernel 6.18.

See merge request etherlab.org/ethercat!199
2026-07-07 10:42:03 +02:00
Danila Dergachev a40c85c03a Added macb (Cadence GEM / RP1) driver for kernel 6.18.
Native EtherCAT device driver for the Raspberry Pi 5 on-RP1 gigabit MAC
(Cadence GEM, "macb"), ported from the genet recipe. Lets the IgH kernel
master poll-drive the NIC directly instead of via the generic driver.

Derived from the in-tree macb driver at Linux 6.18.33
(drivers/net/ethernet/cadence: macb_main.c, macb.h, macb_ptp.c); the
-orig files are verbatim, the -ethercat files add the ecdev hooks
(ecdev_offer/open/close/withdraw, ec_poll, gem_rx -> ecdev_receive,
a persistent TX skb ring, IRQ/NAPI/PTP gated by get_ecdev()).

macb-specific points vs the genet recipe:
- ecdev_offer() before macb_init() (macb requests its IRQs there).
- phylink (not MDIO adjust_link); phylink_start/stop wrapped in rtnl_lock
  in EtherCAT mode (ecdev_open runs without the RTNL lock).
- MAC PHC / PTP init gated off in EtherCAT mode.
- macb_pad_and_fcs(): the master reuses one persistent TX skb and rewrites
  skb->len each cycle without resetting the tail, so re-sync the tail and
  append the software FCS in place; a plain skb_put() walked the tail past
  the buffer end -> skb_over_panic().

Tested on a Raspberry Pi 5 (BCM2712, 6.18.33-rt) against an A6-EC servo
drive: binds the RP1 GEM, reaches OP, 0 lost frames at up to 4 kHz.

Build: ./configure --enable-macb [--with-macb-kernel=6.18]

Known limitations: RX allocates an skb per frame in the poll path (a future
revision can reuse the buffer in place); only the GEM RX path carries the
hook (RP1 is GEM); PM suspend/resume is not specially handled.
2026-06-26 17:58:43 +02:00
Florian Pose beb2bf07df Merge branch 'igc_6.8' into 'stable-1.6'
igb and igc for kernel 6.8

See merge request etherlab.org/ethercat!193
2026-06-16 11:57:09 +02:00
Florian Pose d857b19a17 Merge branch 'stable-1.6' into igc_6.8 2026-05-22 14:12:01 +02:00
Florian Pose 46cc20e669 Merge branch 'r8169_6.1x' into 'stable-1.6'
[r8169] Do not write invalid MAC onto NIC on removal

See merge request etherlab.org/ethercat!195
2026-05-22 11:48:36 +02:00
Florian Pose 6544aa9ec6 Merge branch 'igb-6.8' into 'stable-1.6'
Added igb driver for kernel 6.8

See merge request etherlab.org/ethercat!194
2026-05-22 11:09:29 +02:00
Bjarne von Horn 93327b6b95 [r8169] Do not write invalid MAC onto NIC on removal
Related to #192
2026-05-20 14:30:48 +02:00
Florian Pose f9f855d514 Added igb driver for kernel 6.8. 2026-05-07 10:52:46 +02:00
Bjarne von Horn d90363e072 Add igb Kernel 6.8.2 2026-05-07 10:08:43 +02:00
Bjarne von Horn f8a137a88f Add igc for Kernel 6.8.2 2026-05-07 10:08:11 +02:00
Florian Pose b709e58147 Version bump to 1.6.9 1.6.9 2026-03-26 17:47:12 +01:00