[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230622.092317.16533968095240853.ubuntu@gmail.com>
Date: Thu, 22 Jun 2023 09:23:17 +0900 (JST)
From: FUJITA Tomonori <fujita.tomonori@...il.com>
To: benno.lossin@...ton.me
Cc: fujita.tomonori@...il.com, netdev@...r.kernel.org,
rust-for-linux@...r.kernel.org, aliceryhl@...gle.com, andrew@...n.ch,
miguel.ojeda.sandonis@...il.com
Subject: Re: [PATCH 5/5] samples: rust: add dummy network driver
Hi,
On Thu, 15 Jun 2023 13:08:39 +0000
Benno Lossin <benno.lossin@...ton.me> wrote:
> On 6/13/23 06:53, FUJITA Tomonori wrote:
>> This is a simpler version of drivers/net/dummy.c.
>>
>> This demonstrates the usage of abstractions for network device drivers.
>>
>> Allows allocator_api feature for Box::try_new();
>>
>> Signed-off-by: FUJITA Tomonori <fujita.tomonori@...il.com>
>> ---
>> samples/rust/Kconfig | 12 +++++
>> samples/rust/Makefile | 1 +
>> samples/rust/rust_net_dummy.rs | 81 ++++++++++++++++++++++++++++++++++
>> scripts/Makefile.build | 2 +-
>> 4 files changed, 95 insertions(+), 1 deletion(-)
>> create mode 100644 samples/rust/rust_net_dummy.rs
>>
>> diff --git a/samples/rust/Kconfig b/samples/rust/Kconfig
>> index b0f74a81c8f9..8b52ba620ae3 100644
>> --- a/samples/rust/Kconfig
>> +++ b/samples/rust/Kconfig
>> @@ -30,6 +30,18 @@ config SAMPLE_RUST_PRINT
>>
>> If unsure, say N.
>>
>> +config SAMPLE_RUST_NET_DUMMY
>> + tristate "Dummy network driver"
>> + depends on NET
>> + help
>> + This is the simpler version of drivers/net/dummy.c. No intention to replace it.
>> + This provides educational information for Rust abstractions for network drivers.
>> +
>> + To compile this as a module, choose M here:
>> + the module will be called rust_minimal.
>
> The module is not called `rust_minimal` :)
Oops, I'll fix it in the next version.
thanks,
Powered by blists - more mailing lists