• Alessandro Rubini's avatar
    remove arguments to net->send; some fixes as side effect · faa87f7a
    Alessandro Rubini authored
    Most arguments of net->send are redundant, as the ppi includes all
    info. In particular, chtype and "is_pdelay_addr" derive from the
    message type.  And the timestamp is always internal.
    
    I chose not to remove message, len and msgtype because the message
    being sent includes the header (ppi->tx_offset), so there's some
    calculation to extract them.  This may happen in a later commit, if I
    find that is a size improvement.
    
    Bugs fixed as a side effect:
       - the "if" for "is_pelay" missed PDELAY_RESP_F_UP (now it's in msgtype.c)
       - wrpc pdelay was always using the e2e mac address
    
    This commit decreases the size of all archs by 60 bytes, but increases
    wrpc by 20 bytes because of the fix above
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    faa87f7a
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...
msgtype.c Loading commit data...
timeout.c Loading commit data...