• Alessandro Rubini's avatar
    vlan: add one VLAN in Kconfig as an option · a444be3e
    Alessandro Rubini authored
    WARNING: wr_switch_defconfig doesn't build, this is fixed in next commit
    
    Unfortunately this commit makes the internal communication between
    minic and lan asymmetric: on receive the tag is discarded (and the
    longer header falls into the payload) while on transmit it must be
    provided by lan.c.
    
    The reason is that on receive we can trim 4 bytes from the payload,
    but on send we can't add 4 bytes without a memmove.  The functions
    receive pointers to two different header structures, so hopefully
    user errors will be signalled by the compiler.
    
    Still, users interact with net.c, which hides vlan completely from
    them.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    a444be3e
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 5c5c8039
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrs_main.c Loading commit data...