Skip to content

IP stack: Ideas for optimizations #3547

@zephyrbot

Description

@zephyrbot

Reported by Paul Sokolovsky:

These are background ideas how to squeeze more free code bytes/cpu cycles from IP stack. nothing here is priority for now, while we still work on making it functionally complete and hunt bugs.

  • In pretty many places we use uint16_t, for RISCs this likely leads to more instructions generated than uint32_t.
  • In net_ipv4_finalize_raw()/net_ipv6_finalize_raw() we call net_pkt_compact(), which is kinda away from "zero-copy" behavior. Consider if things like 6lowpan over BLE/802.15.4 can send non-full frames as parts of IPv6 packet. Similarly for other L2's.

(Imported from Jira ZEP-2106)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions