]> git.droids-corp.org - dpdk.git/commitdiff
eal/bsd: fix missing interrupt stub functions
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 19 Oct 2017 16:36:26 +0000 (17:36 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Oct 2017 23:24:22 +0000 (01:24 +0200)
A number of interrupt functions only existed on Linux. Adding in stubs
for these functions corrects this omission, and allows the map files for
both Linux and FreeBSD to be identical.

Fixes: 9efe9c6cdcac ("eal/linux: add epoll wrappers")
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/eal/eal_interrupts.c
lib/librte_eal/bsdapp/eal/rte_eal_version.map

index ea2afff4afcba33205ab7b2688c026d392223737..deba877027ed68ff7bf37af93ddf1ad83fcfe07c 100644 (file)
@@ -125,3 +125,38 @@ rte_intr_cap_multiple(struct rte_intr_handle *intr_handle)
        RTE_SET_USED(intr_handle);
        return 0;
 }
+
+int
+rte_epoll_wait(int epfd, struct rte_epoll_event *events,
+               int maxevents, int timeout)
+{
+       RTE_SET_USED(epfd);
+       RTE_SET_USED(events);
+       RTE_SET_USED(maxevents);
+       RTE_SET_USED(timeout);
+
+       return -ENOTSUP;
+}
+
+int
+rte_epoll_ctl(int epfd, int op, int fd, struct rte_epoll_event *event)
+{
+       RTE_SET_USED(epfd);
+       RTE_SET_USED(op);
+       RTE_SET_USED(fd);
+       RTE_SET_USED(event);
+
+       return -ENOTSUP;
+}
+
+int
+rte_intr_tls_epfd(void)
+{
+       return -ENOTSUP;
+}
+
+void
+rte_intr_free_epoll_fd(struct rte_intr_handle *intr_handle)
+{
+       RTE_SET_USED(intr_handle);
+}
index 7dc687f8880e83c2a683a8391735982d5f5aeec6..8802b288efbbdf9804aff26cb2a71018a8fc0027 100644 (file)
@@ -92,11 +92,14 @@ DPDK_2.0 {
 DPDK_2.1 {
        global:
 
+       rte_epoll_ctl;
+       rte_epoll_wait;
        rte_intr_allow_others;
        rte_intr_dp_is_en;
        rte_intr_efd_disable;
        rte_intr_efd_enable;
        rte_intr_rx_ctl;
+       rte_intr_tls_epfd;
        rte_memzone_free;
 
 } DPDK_2.0;
@@ -156,9 +159,10 @@ DPDK_17.05 {
        global:
 
        rte_cpu_is_supported;
+       rte_intr_free_epoll_fd;
        rte_log_dump;
-       rte_log_register;
        rte_log_get_global_level;
+       rte_log_register;
        rte_log_set_global_level;
        rte_log_set_level;
        rte_log_set_level_regexp;