rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Rust abstractions for network device drivers
@ 2023-06-13  4:53 FUJITA Tomonori
  2023-06-13  4:53 ` [PATCH 3/5] rust: add support for get_stats64 in struct net_device_ops FUJITA Tomonori
  0 siblings, 1 reply; 35+ messages in thread
From: FUJITA Tomonori @ 2023-06-13  4:53 UTC (permalink / raw)
  To: netdev; +Cc: rust-for-linux, aliceryhl, andrew, miguel.ojeda.sandonis

This patchset adds minimum Rust abstractions for network device
drivers and an example of a Rust network device driver, a simpler
version of drivers/net/dummy.c.

The dummy network device driver doesn't attach any bus such as PCI so
the dependency is minimum. Hopefully, it would make reviewing easier.

Thanks a lot for reviewing on RFC patchset at rust-for-linux ml.
Hopefully, I've addressed all the issues.

FUJITA Tomonori (5):
  rust: core abstractions for network device drivers
  rust: add support for ethernet operations
  rust: add support for get_stats64 in struct net_device_ops
  rust: add methods for configure net_device
  samples: rust: add dummy network driver

 rust/bindings/bindings_helper.h |   3 +
 rust/helpers.c                  |  23 ++
 rust/kernel/lib.rs              |   3 +
 rust/kernel/net.rs              |   5 +
 rust/kernel/net/dev.rs          | 697 ++++++++++++++++++++++++++++++++
 samples/rust/Kconfig            |  12 +
 samples/rust/Makefile           |   1 +
 samples/rust/rust_net_dummy.rs  |  81 ++++
 scripts/Makefile.build          |   2 +-
 9 files changed, 826 insertions(+), 1 deletion(-)
 create mode 100644 rust/kernel/net.rs
 create mode 100644 rust/kernel/net/dev.rs
 create mode 100644 samples/rust/rust_net_dummy.rs


base-commit: d2e3115d717197cb2bc020dd1f06b06538474ac3
-- 
2.34.1


^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2023-06-13  4:53 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20230604021736.3392963-1-tomo@exabit.dev>
2023-06-04  2:17 ` [PATCH 4/5] rust: add methods for configure net_device FUJITA Tomonori
2023-06-04 12:48   ` Alice Ryhl
2023-06-05 13:39     ` FUJITA Tomonori
2023-06-04  2:17 ` [PATCH 3/5] rust: add support for get_stats64 in struct net_device_ops FUJITA Tomonori
2023-06-04 12:48   ` Alice Ryhl
2023-06-05 13:57     ` FUJITA Tomonori
2023-06-05 14:26       ` Boqun Feng
2023-06-08  7:56       ` Alice Ryhl
2023-06-04  2:17 ` [PATCH 1/5] rust: core abstractions for network device drivers FUJITA Tomonori
2023-06-04 12:47   ` Alice Ryhl
2023-06-05 13:36     ` FUJITA Tomonori
2023-06-08  7:38       ` Alice Ryhl
2023-06-09 12:39         ` FUJITA Tomonori
2023-06-09 13:15     ` Alice Ryhl
2023-06-09 13:23       ` FUJITA Tomonori
2023-06-06 16:20   ` Andrew Lunn
2023-06-07  5:14     ` FUJITA Tomonori
2023-06-08  8:10     ` Alice Ryhl
2023-06-09 12:52       ` FUJITA Tomonori
2023-06-04  2:17 ` [PATCH 2/5] rust: add support for ethernet operations FUJITA Tomonori
2023-06-04 12:48   ` Alice Ryhl
2023-06-05 14:02     ` FUJITA Tomonori
2023-06-05 23:18       ` FUJITA Tomonori
2023-06-04  2:17 ` [PATCH 5/5] samples: rust: add dummy network driver sample FUJITA Tomonori
2023-06-04 12:48   ` Alice Ryhl
2023-06-05 14:35     ` FUJITA Tomonori
2023-06-06 16:34   ` Andrew Lunn
2023-06-07  5:20     ` FUJITA Tomonori
2023-06-08  8:22     ` Alice Ryhl
2023-06-09 12:33       ` FUJITA Tomonori
2023-06-09 13:11         ` Alice Ryhl
2023-06-09 13:54           ` FUJITA Tomonori
2023-06-09 13:53         ` Andrew Lunn
2023-06-09 14:41           ` FUJITA Tomonori
2023-06-13  4:53 [PATCH 0/5] Rust abstractions for network device drivers FUJITA Tomonori
2023-06-13  4:53 ` [PATCH 3/5] rust: add support for get_stats64 in struct net_device_ops FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).