general: move buffers our of pp_instance, and make them smaller
In order to fit all pp_instance items withing WRS shared memory,
we need to make them a little smaller. Thus, the tx and rx buffers
are now allocated separately. And, while I am at it, I make them
smaller, because 128 bytes are more than enough for PTP with
extensions (all frames are under 100 bytes). Given we are always
showr of memory in wrpc-sw, this is benefical.
As a side effect, clean up some out-of-memory exit paths, and fix a
use-before-check buglet in arch-unix (no, we never go out of memory,
but the check was wrong).
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
Showing
- arch-sim/sim-startup.c 2 additions, 0 deletionsarch-sim/sim-startup.c
- arch-unix/unix-startup.c 15 additions, 8 deletionsarch-unix/unix-startup.c
- arch-wrpc/wrc_ptp_ppsi.c 4 additions, 0 deletionsarch-wrpc/wrc_ptp_ppsi.c
- arch-wrs/wrs-startup.c 19 additions, 8 deletionsarch-wrs/wrs-startup.c
- include/ppsi/constants.h 1 addition, 1 deletioninclude/ppsi/constants.h
- include/ppsi/pp-instance.h 4 additions, 4 deletionsinclude/ppsi/pp-instance.h
- lib-bare/bare-startup.c 4 additions, 0 deletionslib-bare/bare-startup.c
- proto-standard/common-fun.c 4 additions, 4 deletionsproto-standard/common-fun.c
Please register or sign in to comment