git: re: Sync with Realtek's re-196.04; and fix re_start/re_tx_collect.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Nov 30 06:21:10 PST 2020


commit 80492964331d3ad781e1ff17fe61faef902df333
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Nov 4 20:35:53 2020 +0800

    re: Sync with Realtek's re-196.04; and fix re_start/re_tx_collect.
    
    - Add several new chips' support, noticably RTL8125 support.
    - Reorder chip related initializaton on the attach path a bit;
      mainly to make sure ifnet is initialized.
    - In re_start(), solely rely on the re_tx_free for the TX descriptor
      setup loop.  This avoids the fixup on the end of the loop.  Add
      assertion that the TX descriptor's corresponding mbuf is not setup
      yet.
    - On RTL8125, the EOF in the TX descriptor is no longer left uncleared
      upon TX done, so simply rely on whether the TX descriptor's
      corresponding mbuf is set or not to unload the busdma(9) and free the
      TX mbuf.  We actually should do this instead of rely on the EOF.
    
    Tested-by: me (8101, 8111, 8168, 8125)
        Romick <yellowrabbit2010 gmail.com> (8111)
        Daniel Fojt <df neosystem.org> (8111)

Summary of changes:
 share/man/man4/re.4         |   31 +-
 sys/bus/pci/pcidevs         |    1 +
 sys/dev/netif/re/if_re.c    |  192 +-
 sys/dev/netif/re/if_revar.h |    9 +-
 sys/dev/netif/re/re.c       | 6094 +++++++++++++++++++++++++++++++++++++++----
 sys/dev/netif/re/re.h       |   66 +-
 6 files changed, 5773 insertions(+), 620 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/80492964331d3ad781e1ff17fe61faef902df333


-- 
DragonFly BSD source repository


More information about the Commits mailing list