]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343772, r343867
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Tue, 12 Feb 2019 09:07:46 +0000 (09:07 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Tue, 12 Feb 2019 09:07:46 +0000 (09:07 +0000)
commit01e8e2c2d6d31a2e328e090ab1feda3a68c0d094
treec31a9050e739bd2a451025ca5f14a5c744aa1860
parent845ef9bc3f13b52e6d5f21f78acf02621ca596d0
MFC r343772, r343867

netmap: refactor logging macros and pipes

Changelist:
    - Replace ND, D and RD macros with nm_prdis, nm_prinf, nm_prerr
      and nm_prlim, to avoid possible naming conflicts.
    - Add netmap_krings_mode_commit() helper function and use that
      to reduce code duplication.
    - Refactor pipes control code to export some functions that
      can be reused by the veth driver (on Linux) and epair(4).
    - Add check to reject API requests with version less than 11.
    - Small code refactoring for the null adapter.
14 files changed:
sys/dev/netmap/if_ptnet.c
sys/dev/netmap/if_vtnet_netmap.h
sys/dev/netmap/netmap.c
sys/dev/netmap/netmap_bdg.c
sys/dev/netmap/netmap_freebsd.c
sys/dev/netmap/netmap_generic.c
sys/dev/netmap/netmap_kern.h
sys/dev/netmap/netmap_legacy.c
sys/dev/netmap/netmap_mem2.c
sys/dev/netmap/netmap_monitor.c
sys/dev/netmap/netmap_null.c
sys/dev/netmap/netmap_offloadings.c
sys/dev/netmap/netmap_pipe.c
sys/dev/netmap/netmap_vale.c