Benjamin Valentin
2a6b8a3fed
gnrc_netif: use different error messages for can't queue packet
2024-11-22 19:50:20 +01:00
Benjamin Valentin
a86411b81e
drivers/netdev: allow .send() to return > 0 to signal synchronos send
2024-11-20 16:40:36 +01:00
Marian Buschsieweke
51f969d655
Merge pull request #20993 from benpicco/netdev_new_api-enhance
...
gnrc_netif: netdev_new_api implies TX end irq, no need to check it
2024-11-17 08:45:19 +00:00
Benjamin Valentin
f82c41e96f
gnrc_netif: netdev_new_api implies TX end irq, no need to check it
2024-11-14 17:11:58 +01:00
Benjamin Valentin
8eef1c1170
sys/net/gnrc/netif: don't release snip with netdev_new_api
2024-11-14 11:57:58 +01:00
Benjamin Valentin
b9b8c4a68f
gnrc_netif: fix packet leak with gnrc_netif_pktq & netdev_new_api
2024-11-13 13:40:13 +01:00
Benjamin Valentin
0bed0c6bfe
gnrc_netif: fix double free with netdev_new_api & gnrc_netif_pktq
2024-11-11 20:30:30 +01:00
Benjamin Valentin
312a550f1a
treewide: remove THREAD_CREATE_STACKTEST from thread creation
2024-07-29 11:45:58 +02:00
Marian Buschsieweke
6ac1bcad7e
sys/net/gnrc/gnrc_netif: fix compilation with new netdev API
...
This fixes a regression introduced in #18496
2024-05-08 21:06:00 +02:00
Stefan Schmidt
9d62ad4c5c
driver/w5500: driver for the W5500 ethernet chip
...
- driver can be used with interrupt or in polling mode (default)
2024-05-02 22:07:17 +02:00
Martine Lenders
5c75f84d6e
gnrc_netif: remove deprecated CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR
2024-03-28 09:19:33 +01:00
MrKevinWeiss
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model
2024-03-27 10:28:12 +01:00
Benjamin Valentin
2f9c68dabc
sys/net/netif: constify netif access
2023-12-15 16:50:21 +01:00
Benjamin Valentin
bc2c95c833
net/gnrc/netif: set 6LN flag for ethernet if gnrc_sixloenc is used
2023-12-04 22:56:28 +01:00
Benjamin Valentin
c5b6a49b21
sys/net/gnrc/netif: print which netif failed to init
2023-11-28 23:01:21 +01:00
bors[bot]
c463bc9c11
Merge #18156
...
18156: pkg/opendsme: add initial support for IEEE 802.15.4 DSME time-slotted MAC r=jia200x a=jia200x
Co-authored-by: Jose Alamos <jose@alamos.cc>
2023-06-13 12:11:07 +00:00
Jose Alamos
70838d379c
auto_init_nrf802154: add opendsme support
2023-05-31 16:31:25 +02:00
bors[bot]
975f150383
Merge #19621 #19622 #19623 #19626 #19627
...
19621: sys: add Kconfig support for clif r=MrKevinWeiss a=aabadie
19622: sys: add some missing kconfig + adapt related tests when possible r=aabadie a=aabadie
19623: pkg/libbase58: add kconfig support r=MrKevinWeiss a=aabadie
19626: sys/gnrc_lorawan: remove deprecated tx port option r=aabadie a=aabadie
19627: makefiles/pseudomodules: remove deprecated event_thread_lowest module r=aabadie a=aabadie
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2023-05-20 07:13:34 +00:00
cfb5000d5c
sys/gnrc/lorawan: remove handling of deprecated tx port
2023-05-19 16:06:53 +02:00
chudov
c52f6e71c2
drivers/at86rf2xx: rx timestamp generation for ATmegaRFR2
...
Signed-off-by: chudov <chudov@gmail.com>
2023-05-19 15:33:15 +02:00
chudov
516df5cdb6
gnrc/gnrc_netif_hdr_print: printout timestamp if enabled
...
Signed-off-by: chudov <chudov@gmail.com>
2023-05-15 12:52:35 +02:00
Jose Alamos
3c1f5a0dbd
gnrc_netif/lorawan: fix setting nkskey via NETOPT
2023-04-17 12:40:42 +02:00
Jan Mohr
72107a0873
sys/net/gnrc/netif: fixing no global address wait
2023-03-17 13:45:35 +01:00
Benjamin Valentin
9faa323c83
gnrc_netif: set lower bound for IEEE802154_STACKSIZE_DEFAULT
...
Since it was ported to the radio HAL, at86rf2xx requires more stack:
2023-03-02 01:00:52,637 # pid | name | state Q | pri | stack ( used) ( free) | base addr | current
2023-03-02 01:00:52,646 # 1 | idle | pending Q | 15 | 192 ( 130) ( 62) | 0x263a | 0x269f
2023-03-02 01:00:52,655 # 2 | main | running Q | 7 | 2560 ( 1732) ( 828) | 0x26fa | 0x2cb1
2023-03-02 01:00:52,663 # 3 | 6lo | bl rx _ | 3 | 512 ( 276) ( 236) | 0x5446 | 0x559b
2023-03-02 01:00:52,672 # 4 | ipv6 | bl rx _ | 4 | 512 ( 372) ( 140) | 0x318e | 0x32c4
2023-03-02 01:00:52,681 # 5 | udp | bl rx _ | 5 | 256 ( 214) ( 42) | 0x5648 | 0x569d
2023-03-02 01:00:52,689 # 6 | at86rf2xx | bl anyfl _ | 2 | 520 ( 514) ( 6) | 0x3582 | 0x371f
2023-03-02 01:00:52,697 # | SUM | | | 4552 ( 3238) ( 1314)
2023-03-02 01:01:30 +01:00
Gunar Schorcht
e7d0fbbc71
sys/net/gnrc/netif: add tinyUSB netdev to auto_init
2023-02-01 21:58:01 +01:00
Jose Alamos
91a299cb7d
drivers/mrf24j40: add support for IEEE 802.15.4 Radio HAL
2023-01-19 15:31:06 +01:00
Marian Buschsieweke
86fdbd7054
core/lib: Add macros/utils.h header
...
The macros CONCAT(), MIN(), and MAX() are defined over and over again in
RIOT's code base. This de-duplicates the code by moving the macros to a
common place.
2023-01-07 09:47:44 +01:00
Felix
17c70f7ee0
gnrc_netif_ieee802154: Ignore packets without source address
2022-10-29 00:58:35 +02:00
Marian Buschsieweke
b539d7ad6d
Merge pull request #17905 from benpicco/GNRC_NETIF_STACKSIZE_DEFAULT
...
gnrc_netif: don't allocate message queue on the stack
2022-10-13 17:10:43 +02:00
Martine Lenders
5f504ad70d
gnrc_netif_lorawan: add debug message for failed send
2022-10-11 22:57:00 +02:00
Martine Lenders
f34f296242
gnrc_netif_lorawan: add support for LINK_UP/_DOWN events
2022-10-11 12:29:11 +02:00
Martine Lenders
47aaa94157
gnrc_ipv6_nib: handle iface_up/iface_down in IPv6 thread
2022-10-07 14:12:00 +02:00
Ollrogge
12a4e1c1ec
gnrc/lorawan: add support for GNRC LoRaWAN 1.1
2022-09-29 11:25:56 +02:00
Benjamin Valentin
b1ea963df4
gnrc_netif: introduce GNRC_NETIF_STACKSIZE_DEFAULT
2022-09-18 18:35:21 +02:00
Marian Buschsieweke
8457f09dde
Merge pull request #18139 from maribu/sys/net/gnrc/netif/confirm_send
...
sys/net/gnrc_netif: Make use of confirm send
2022-09-17 19:40:24 +02:00
Benjamin Valentin
4b0bfae4ca
gnrc_netif: handle NETDEV_EVENT_LINK_UP/DOWN events
2022-09-16 22:57:06 +02:00
Benjamin Valentin
6e7d5ae2d3
codespell: fix remaining issues
2022-09-16 14:00:35 +02:00
Marian Buschsieweke
581f35e577
sys/net/gnrc/netif: adapt to new API
...
For Ethernet, raw netifs, and IEEE 802.15.4 netifs only release outgoing
frame with legacy drivers, as gnrc_netif does so with new non-blocking
API.
2022-09-15 13:23:26 +02:00
Marian Buschsieweke
1cb6f9e11a
sys/net/gnrc/netif: provide support for confirm_send()
...
This adds support for netdevs implementing the new API that provides
`netdev_driver_t::confirm_send()`. This allows implementing netdevs
in an event based non-blocking fashion, making live of driver
developers a bit easier. In addition, `gnrc_tx_sync` will now throttle
users of `sock_udp_send()` so that they can only send datagrams as
fast as the network stack and hardware is able to send out.
Finally, this lays the groundwork to fetch TX statistics (such as
TX timestamps, reception of layer 2 ACKs/NACKs, etc.) from the network
devices.
2022-09-15 13:23:25 +02:00
Jose Alamos
5fd601ae97
gnrc/init_devs/kw2xrf: use high priority queue for drivers
2022-08-22 18:00:15 +02:00
Jose Alamos
2c9f3072fb
net/gnrc_netif: add support for priority queues
2022-08-22 18:00:14 +02:00
Jose Alamos
4ebcd7c055
drivers/kw2xrf: add IEEE 802.15.4 Radio HAL support
...
Co-authored-by: Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>
2022-08-15 12:11:03 +02:00
Benjamin Valentin
56fc7c375f
gnrc_netif: move message queue to gnrc_netif_t
2022-07-18 23:28:38 +02:00
benpicco
2198eb84c0
Merge pull request #18284 from jia200x/pr/gnrc_netif_move_tested_options
...
gnrc_netif: move `option_tested` to default init function
2022-07-11 22:57:57 +02:00
Leandro Lanzieri
4a3231f763
drivers/kw2xrf: add setup function with global index
...
This index is used to register the network device.
2022-07-11 09:24:59 +02:00
Jose Alamos
2c76dbf351
gnrc_netif: move option_tested
to default init function
2022-06-29 17:48:27 +02:00
Marian Buschsieweke
973b6f69bf
sys/net/netopt: change NETOPT_STATS semantics
...
Instead of retrieving a pointer with NETOPT_STATS, retrieve the current
data. This avoids data corruptions when reading from one thread (e.g.
the thread running the shell (ifconfig command)) while another thread
is updating it (e.g. the netif thread).
The issue affects all boards, as users typically expect the count of
TX packets and the number of TX bytes to refer to the same state. For
16 bit and 8 bit platforms even a single netstat entry can read back
corrupted.
This fixes the issue by just copying the whole netstat_t struct over
without requiring explicit locking on the user side. A multi-threaded
network stack still needs to synchronize the thread responding to
netopt_get with the thread writing to the netstat_t structure, but that
is an implementation detail no relevant to the user of the API.
2022-06-28 16:57:43 +02:00
Martine Lenders
18edd896c1
Merge pull request #18153 from benpicco/gnrc_netif_pktq-fix
...
gnrc_netif_pktq: protect against concurrent access
2022-06-01 22:00:29 +02:00
Benjamin Valentin
61cc168ce1
gnrc_netif_pktq: protect against concurrent access
...
fixes #17924
2022-06-01 12:13:31 +02:00
Martine Lenders
c4e202ae67
Merge pull request #17709 from benpicco/cpu/native-tap_wired
...
netdev_tap: make 'wired' property configurable
2022-06-01 02:24:43 +02:00