rtlabs-com / p-net

PROFINET device stack for embedded devices

Home Page:http://www.rt-labs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pnet port for rt-kernel by-passes lwip locking

elupus opened this issue · comments

When running pnet with rt-kernel, the pnet stack by-passes lwip core locks and calls directly into hardware network driver. This causes hardware driver's to end up in inconsistent state when both LWIP and PNET is writing to network.

handle->netif->linkoutput (handle->netif, buf);

Either call must be made through lwip, or core lock must be taken before calling into hardware.