Skip to content
Snippets Groups Projects
  1. Nov 01, 2016
  2. Oct 27, 2016
  3. Jun 10, 2016
  4. Apr 04, 2016
    • 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: default avatarAlessandro Rubini <rubini@gnudd.com>
      a444be3e
    • Alessandro Rubini's avatar
      net: define wr_ethhdr and use it (no change) · 52ec2a38
      Alessandro Rubini authored
      
      We used to have "struct ethhdr" local in net.c, passing "void *hdr" to
      minic.  We exports the structure to an header so to use it in
      communicating with the minic.  Unfortunaltey, ethhdr is defined elsewhere
      too, so we'd better rename to wr_ethhdr.
      
      This is a step towards the introduction of vlans, but has no technical
      effect by itself.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      52ec2a38
  5. Oct 30, 2015
    • Alessandro Rubini's avatar
      general: add missing copyright notes. · 5e844431
      Alessandro Rubini authored
      
      This commit fixes all copyright notes, using "git blame" as a
      reference.  For simple files I just added a 2-lines boilerplate about
      being WR and GPL.
      
      Some parts I left untouched:
      
        trivial-init and related files (unclear to me what this is,
        and pf-microcode.h is magic binary pfilter values).
      
        tools/lm32-etheruart: I don't know what this is and who the author is
      
        libsdbfs: this comes from another repo and I'd better not change it
      
        sfp_lib.h and hal_shmem.h: I lost track about the origin of this,
        among the several packages.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      5e844431
  6. Jul 26, 2015
  7. Feb 14, 2013
  8. Oct 05, 2012
    • Alessandro Rubini's avatar
      Run ./scripts/Lindent on all .c and .h files · e625cbd9
      Alessandro Rubini authored
      
      This is massive: 4k lines changed (but only 840 if you ignore
      space-only changes).  In this case "git blame -w" won't always find
      the right patch, and it may fall on this patch -- because those
      800 lines changed in content too.
      
      This has been done with
      
         find . -name '*.[ch]' | xargs -n 1 ./scripts/Lindent
      
      Statistics: all changes and ignoring blank space:
      
         morgana% git diff --stat HEAD~1 | tail -1
          77 files changed, 3774 insertions(+), 3709 deletions(-)
         morgana% git diff -w --stat HEAD~1 | tail -1
          61 files changed, 894 insertions(+), 829 deletions(-)
      
      However, after this step I hand-fixed some very ugly long expressions
      (leaving them long: no content change at all is there).
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      e625cbd9
  9. Sep 25, 2012
  10. Mar 08, 2012
  11. Apr 12, 2011
  12. Apr 08, 2011