Skip to content

net: (At least) eth_smsc911x driver is broken in the master #13484

@pfalcon

Description

@pfalcon

ebd2edb converted the eth_smsc911x driver to new pkt API, which is great. However, the cause of conversation appears to be the desire to remove the old API, which by all accounts was a hasty act, given that the new API is, ahem, experimental, and "we yet have 2 months to stabilize it". Due to this:

  1. eth_smsc911x is broken, as it contains outright typos.
  2. The conversion itself is clearly subideal, e.g. it uses function calls to fill each 4 bytes of a packet, where previously one word-sized memory store was used.

p.1 sneaked into the master due to #13481. But overall, instead of hastily convert drivers like eth_smsc911x for the sole purpose of removing the old API, both the driver and old API should have been kept around, to see where the new API is still lacking comparing to the old, and need more work/optimizations.

To reproduce breakage:

  1. cd samples/net/sockets/dumb_http_server/
  2. mkdir build && cd build
  3. cmake -DBOARD=qemu_x86 -DOVERLAY_CONFIG=overlay-smsc911x.conf ..
  4. make

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions