1. 18 May, 2020 1 commit
  2. 02 Apr, 2020 1 commit
    • Robert Sprowson's avatar
      Minor updates · 964eaf7a
      Robert Sprowson authored
      if_cpsw.c: Updated to NetBSD's revision 1.21
      if_cpsw_reg: Updated to NetBSD's revision 1.5
      glue.h: Minor fallout from newer if_cpsw.
      glue.c: should cpsw_attach() fail for any reason, if_attach() never gets called, so nicifp is undefined, leading to an abort on the 1s callevery. Check nicifp is non-NULL first.
      
      Version 0.04. Tagged as 'EtherCPSW-0_04'
      964eaf7a
  3. 02 Jun, 2017 1 commit
    • Robert Sprowson's avatar
      Minor debug sync up · f3a888ad
      Robert Sprowson authored
      Make use of the driver title string rather than baking it into the text.
      Released binary unchanged, retagged as EtherCPSW-0_03.
      f3a888ad
  4. 18 Nov, 2016 1 commit
    • Robert Sprowson's avatar
      More faithful emulation of config_devalloc() · b1485601
      Robert Sprowson authored
      In NetBSD when the softc is allocated they use kmem_zalloc() which zeroes the memory too; follow suit by using calloc instead of malloc.
      Fixes problem where an unconfigured network interface (that has never sent any packets, even an ARP) would watchdog after 62s (the consistent random value in if_timer) and try to pass a phantom mbuf to MbufManager, leading to an abort.
      
      Version 0.03. Tagged as 'EtherCPSW-0_03'
      b1485601
  5. 24 Nov, 2015 1 commit
    • Robert Sprowson's avatar
      Minor speedup, and fix for mbuf loop on fragmented packet · 4bfac56c
      Robert Sprowson authored
      Line 277: When an interrupt is handled by the driver, actively claim it rather than clearing and passing on, to save the kernel having to carry on looking through its claimant list.
      Line 527: On fast machines if you're unlucky while sending out a fragmented packet which has been provided as a list of mbufs length > 1, having sent the first chain in the list by using CAT() the chain is free'd but without cropping the hdr off which now points to a free'd mbuf. An incoming packet just at that moment would likely recycle the mbuf and the result is a circular linked list which MbufManager can't process. Unlink hdr before freeing to break the chain.
      
      Version 0.02. Tagged as 'EtherCPSW-0_02'
      4bfac56c
  6. 07 Nov, 2015 2 commits