Skip to content

Commit

Permalink
eal/bsd: rename bsdapp to freebsd
Browse files Browse the repository at this point in the history
The term "bsdapp" is a legacy one, but just calling the subdirectory
"freebsd" is just clearer for all concerned.

Signed-off-by: Bruce Richardson <[email protected]>
  • Loading branch information
bruce-richardson authored and tmonjalo committed Mar 12, 2019
1 parent 610e235 commit 25c99fb
Show file tree
Hide file tree
Showing 22 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ F: doc/guides/prog_guide/ext_app_lib_make_help.rst
Meson build
M: Bruce Richardson <[email protected]>
F: meson.build
F: lib/librte_eal/bsdapp/BSDmakefile.meson
F: lib/librte_eal/freebsd/BSDmakefile.meson
F: meson_options.txt
F: config/rte_config.h
F: buildtools/gen-pmdinfo-cfile.sh
Expand Down Expand Up @@ -174,7 +174,7 @@ F: lib/librte_eal/common/eal_common_fbarray.c
F: lib/librte_eal/common/eal_common_mem*
F: lib/librte_eal/common/eal_hugepages.h
F: lib/librte_eal/linuxapp/eal/eal_mem*
F: lib/librte_eal/bsdapp/eal/eal_mem*
F: lib/librte_eal/freebsd/eal/eal_mem*
F: doc/guides/prog_guide/env_abstraction_layer.rst
F: app/test/test_external_mem.c
F: app/test/test_func_reentrancy.c
Expand Down Expand Up @@ -260,8 +260,8 @@ F: drivers/bus/pci/linux/*vfio*

FreeBSD EAL (with overlaps)
M: Bruce Richardson <[email protected]>
F: lib/librte_eal/bsdapp/Makefile
F: lib/librte_eal/bsdapp/eal/
F: lib/librte_eal/freebsd/Makefile
F: lib/librte_eal/freebsd/eal/
F: doc/guides/freebsd_gsg/

FreeBSD contigmem
Expand Down
2 changes: 1 addition & 1 deletion devtools/build-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ linux_sources()

bsd_sources()
{
find_sources "lib/librte_eal/bsdapp" '*.[chS]'
find_sources "lib/librte_eal/freebsd" '*.[chS]'
}

arm_common()
Expand Down
2 changes: 1 addition & 1 deletion doc/guides/prog_guide/env_abstraction_layer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ EAL provides the event APIs for this event-driven thread mode.
Taking linuxapp as an example, the implementation relies on epoll. Each thread can monitor an epoll instance
in which all the wake-up events' file descriptors are added. The event file descriptors are created and mapped to
the interrupt vectors according to the UIO/VFIO spec.
From bsdapp's perspective, kqueue is the alternative way, but not implemented yet.
From FreeBSD's perspective, kqueue is the alternative way, but not implemented yet.

EAL initializes the mapping between event file descriptors and interrupt vectors, while each device initializes the mapping
between interrupt vectors and queues. In this way, EAL actually is unaware of the interrupt cause on the specific vector.
Expand Down
4 changes: 2 additions & 2 deletions lib/librte_eal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(RTE_SDK)/mk/rte.vars.mk
DIRS-y += common
DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += linuxapp
DEPDIRS-linuxapp := common
DIRS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += bsdapp
DEPDIRS-bsdapp := common
DIRS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += freebsd
DEPDIRS-freebsd := common

include $(RTE_SDK)/mk/rte.subdir.mk
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/librte_eal/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if host_machine.system() == 'linux'

elif host_machine.system() == 'freebsd'
dpdk_conf.set('RTE_EXEC_ENV_BSDAPP', 1)
subdir('bsdapp/eal')
subdir('freebsd/eal')

else
error('unsupported system type "@0@"'.format(host_machine.system()))
Expand Down

0 comments on commit 25c99fb

Please sign in to comment.