Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Add skb bindings and safe smsc9512 driver #261

Open
geofft opened this issue Aug 28, 2020 · 0 comments
Open

Add skb bindings and safe smsc9512 driver #261

geofft opened this issue Aug 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@geofft
Copy link
Collaborator

geofft commented Aug 28, 2020

https://github.com/lizhuohua/linux-kernel-module-rust/tree/master/smsc9512 is a Rust driver for the onboard NIC on the Raspberry Pi 2 and 3 (it is in fact a USB Ethernet device despite being onboard), based on an older version of this project. It's mostly unsafe code, but it looks like it's mostly unsafe because there aren't safe skb (socket buffer) bindings, and skb seems like the sort of thing that would very much benefit from Rust's safety tools.

Let's write a safe skb abstraction and then try to port that driver over (which would also require getting things going for ARM, probably).

I'm pretty sure I have an RPi 2 somewhere in this apartment....

@alex alex added the enhancement New feature or request label Aug 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants