]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343772, r343867
authorvmaffione <vmaffione@FreeBSD.org>
Tue, 12 Feb 2019 09:26:05 +0000 (09:26 +0000)
committervmaffione <vmaffione@FreeBSD.org>
Tue, 12 Feb 2019 09:26:05 +0000 (09:26 +0000)
commit34bd66a88f53c8965c7ff7f0042874c804cef736
treea4807b4ddd36f454dd23f2ad9e14003a7d70392f
parentd74831b3a043e4573226da84cb63a805a5c6bade
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/ixgbe/ixgbe_netmap.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