summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2019-12-16 10:31:14 +0800
committerKhem Raj <raj.khem@gmail.com>2019-12-16 08:38:35 -0800
commit72e1e79589b75901fe8543501c45eb25dcda55ff (patch)
tree7020673b7662ae8d2f62b7d4d1a81fcc42bc1033 /meta-networking/recipes-support
parent96d881d545e5a5de0f2fb057ef7dc19a2ff02320 (diff)
downloadmeta-openembedded-72e1e79589b75901fe8543501c45eb25dcda55ff.tar.gz
rdma-core: 18.1 -> 27.0
Upgrade rdma-core from 18.1 to 27.0 * remove 4 patches which have been merged by upstream * update context and remove more unbuildable manual in 0001-Remove-man-files-which-cant-be-built.patch * set services file for systemd Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support')
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch255
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch29
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch25
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch27
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch26
-rw-r--r--meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb (renamed from meta-networking/recipes-support/rdma-core/rdma-core_18.1.bb)26
6 files changed, 261 insertions, 127 deletions
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch
index 4b595613f..f1437a0fb 100644
--- a/meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch
+++ b/meta-networking/recipes-support/rdma-core/rdma-core/0001-Remove-man-files-which-cant-be-built.patch
@@ -14,14 +14,67 @@ Fixes errors
14| cmake_install.cmake:48 (include) 14| cmake_install.cmake:48 (include)
15 15
16Signed-off-by: Khem Raj <raj.khem@gmail.com> 16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17
18Update for version 26.1. Remove more man files which can no be built.
19
20Signed-off-by: Kai Kang <kai.kang@windriver.com>
17--- 21---
18 libibumad/man/CMakeLists.txt | 1 - 22 infiniband-diags/man/CMakeLists.txt | 34 -------------------
19 libibverbs/man/CMakeLists.txt | 15 --------------- 23 libibumad/man/CMakeLists.txt | 2 --
20 providers/mlx5/man/CMakeLists.txt | 1 - 24 libibverbs/man/CMakeLists.txt | 52 -----------------------------
21 3 files changed, 17 deletions(-) 25 librdmacm/man/CMakeLists.txt | 2 --
26 providers/efa/man/CMakeLists.txt | 2 --
27 providers/mlx4/man/CMakeLists.txt | 1 -
28 providers/mlx5/man/CMakeLists.txt | 65 -------------------------------------
29 7 files changed, 158 deletions(-)
22 30
31diff --git a/infiniband-diags/man/CMakeLists.txt b/infiniband-diags/man/CMakeLists.txt
32index 1f1f91c9..094a389f 100644
33--- a/infiniband-diags/man/CMakeLists.txt
34+++ b/infiniband-diags/man/CMakeLists.txt
35@@ -46,40 +46,6 @@ rdma_rst_common(
36 )
37
38 rdma_man_pages(
39- check_lft_balance.8.in.rst
40- dump_fts.8.in.rst
41- ibaddr.8.in.rst
42- ibcacheedit.8.in.rst
43- ibccconfig.8.in.rst
44- ibccquery.8.in.rst
45- ibfindnodesusing.8.in.rst
46- ibhosts.8.in.rst
47- ibidsverify.8.in.rst
48- iblinkinfo.8.in.rst
49- ibnetdiscover.8.in.rst
50- ibnodes.8.in.rst
51- ibping.8.in.rst
52- ibportstate.8.in.rst
53- ibqueryerrors.8.in.rst
54- ibroute.8.in.rst
55- ibrouters.8.in.rst
56- ibstat.8.in.rst
57- ibstatus.8.in.rst
58- ibswitches.8.in.rst
59- ibsysstat.8.in.rst
60- ibtracert.8.in.rst
61- infiniband-diags.8.in.rst
62- perfquery.8.in.rst
63- saquery.8.in.rst
64- sminfo.8.in.rst
65- smpdump.8.in.rst
66- smpquery.8.in.rst
67- vendstat.8.in.rst
68- )
69-
70-rdma_alias_man_pages(
71- dump_fts.8 dump_lfts.8
72- dump_fts.8 dump_mfts.8
73 )
74
75 if (ENABLE_IBDIAGS_COMPAT)
23diff --git a/libibumad/man/CMakeLists.txt b/libibumad/man/CMakeLists.txt 76diff --git a/libibumad/man/CMakeLists.txt b/libibumad/man/CMakeLists.txt
24index 185584a0..ac45a4e9 100644 77index 185584a0..857a4b8b 100644
25--- a/libibumad/man/CMakeLists.txt 78--- a/libibumad/man/CMakeLists.txt
26+++ b/libibumad/man/CMakeLists.txt 79+++ b/libibumad/man/CMakeLists.txt
27@@ -15,7 +15,6 @@ rdma_man_pages( 80@@ -15,7 +15,6 @@ rdma_man_pages(
@@ -32,19 +85,34 @@ index 185584a0..ac45a4e9 100644
32 umad_open_port.3 85 umad_open_port.3
33 umad_poll.3 86 umad_poll.3
34 umad_recv.3 87 umad_recv.3
88@@ -38,5 +37,4 @@ rdma_alias_man_pages(
89 umad_class_str.3 umad_method_str.3
90 umad_get_ca.3 umad_release_ca.3
91 umad_get_port.3 umad_release_port.3
92- umad_init.3 umad_done.3
93 )
35diff --git a/libibverbs/man/CMakeLists.txt b/libibverbs/man/CMakeLists.txt 94diff --git a/libibverbs/man/CMakeLists.txt b/libibverbs/man/CMakeLists.txt
36index 86dd49de..b54675be 100644 95index e1d5edf8..92c68611 100644
37--- a/libibverbs/man/CMakeLists.txt 96--- a/libibverbs/man/CMakeLists.txt
38+++ b/libibverbs/man/CMakeLists.txt 97+++ b/libibverbs/man/CMakeLists.txt
39@@ -5,7 +5,6 @@ rdma_man_pages( 98@@ -1,24 +1,18 @@
99 rdma_man_pages(
100- ibv_advise_mr.3.md
101 ibv_alloc_dm.3
102 ibv_alloc_mw.3
103- ibv_alloc_null_mr.3.md
104 ibv_alloc_parent_domain.3
40 ibv_alloc_pd.3 105 ibv_alloc_pd.3
41 ibv_alloc_td.3 106 ibv_alloc_td.3
42 ibv_asyncwatch.1 107 ibv_asyncwatch.1
108- ibv_attach_counters_point_flow.3.md
43- ibv_attach_mcast.3.md 109- ibv_attach_mcast.3.md
44 ibv_bind_mw.3 110 ibv_bind_mw.3
45 ibv_create_ah.3 111 ibv_create_ah.3
46 ibv_create_ah_from_wc.3 112 ibv_create_ah_from_wc.3
47@@ -14,7 +13,6 @@ rdma_man_pages( 113 ibv_create_comp_channel.3
114- ibv_create_counters.3.md
115 ibv_create_cq.3
48 ibv_create_cq_ex.3 116 ibv_create_cq_ex.3
49 ibv_modify_cq.3 117 ibv_modify_cq.3
50 ibv_create_flow.3 118 ibv_create_flow.3
@@ -52,7 +120,7 @@ index 86dd49de..b54675be 100644
52 ibv_create_qp.3 120 ibv_create_qp.3
53 ibv_create_qp_ex.3 121 ibv_create_qp_ex.3
54 ibv_create_rwq_ind_table.3 122 ibv_create_rwq_ind_table.3
55@@ -23,15 +21,9 @@ rdma_man_pages( 123@@ -27,16 +21,8 @@ rdma_man_pages(
56 ibv_create_wq.3 124 ibv_create_wq.3
57 ibv_devices.1 125 ibv_devices.1
58 ibv_devinfo.1 126 ibv_devinfo.1
@@ -61,14 +129,15 @@ index 86dd49de..b54675be 100644
61 ibv_get_async_event.3 129 ibv_get_async_event.3
62 ibv_get_cq_event.3 130 ibv_get_cq_event.3
63- ibv_get_device_guid.3.md 131- ibv_get_device_guid.3.md
64 ibv_get_device_list.3 132- ibv_get_device_list.3.md
65- ibv_get_device_name.3.md 133- ibv_get_device_name.3.md
134- ibv_get_pkey_index.3.md
66- ibv_get_srq_num.3.md 135- ibv_get_srq_num.3.md
67- ibv_inc_rkey.3.md 136- ibv_inc_rkey.3.md
68 ibv_modify_qp.3 137 ibv_modify_qp.3
69 ibv_modify_qp_rate_limit.3 138 ibv_modify_qp_rate_limit.3
70 ibv_modify_srq.3 139 ibv_modify_srq.3
71@@ -46,19 +38,12 @@ rdma_man_pages( 140@@ -51,24 +37,15 @@ rdma_man_pages(
72 ibv_post_srq_recv.3 141 ibv_post_srq_recv.3
73 ibv_query_device.3 142 ibv_query_device.3
74 ibv_query_device_ex.3 143 ibv_query_device_ex.3
@@ -81,6 +150,7 @@ index 86dd49de..b54675be 100644
81- ibv_rate_to_mbps.3.md 150- ibv_rate_to_mbps.3.md
82- ibv_rate_to_mult.3.md 151- ibv_rate_to_mult.3.md
83 ibv_rc_pingpong.1 152 ibv_rc_pingpong.1
153- ibv_read_counters.3.md
84 ibv_reg_mr.3 154 ibv_reg_mr.3
85- ibv_req_notify_cq.3.md 155- ibv_req_notify_cq.3.md
86- ibv_rereg_mr.3.md 156- ibv_rereg_mr.3.md
@@ -88,16 +158,175 @@ index 86dd49de..b54675be 100644
88 ibv_srq_pingpong.1 158 ibv_srq_pingpong.1
89 ibv_uc_pingpong.1 159 ibv_uc_pingpong.1
90 ibv_ud_pingpong.1 160 ibv_ud_pingpong.1
161- ibv_wr_post.3.md
162 ibv_xsrq_pingpong.1
163 )
164 rdma_alias_man_pages(
165@@ -79,47 +56,18 @@ rdma_alias_man_pages(
166 ibv_alloc_mw.3 ibv_dealloc_mw.3
167 ibv_alloc_pd.3 ibv_dealloc_pd.3
168 ibv_alloc_td.3 ibv_dealloc_td.3
169- ibv_attach_mcast.3 ibv_detach_mcast.3
170 ibv_create_ah.3 ibv_destroy_ah.3
171 ibv_create_ah_from_wc.3 ibv_init_ah_from_wc.3
172 ibv_create_comp_channel.3 ibv_destroy_comp_channel.3
173- ibv_create_counters.3 ibv_destroy_counters.3
174 ibv_create_cq.3 ibv_destroy_cq.3
175 ibv_create_flow.3 ibv_destroy_flow.3
176- ibv_create_flow_action.3 ibv_destroy_flow_action.3
177- ibv_create_flow_action.3 ibv_modify_flow_action.3
178 ibv_create_qp.3 ibv_destroy_qp.3
179 ibv_create_rwq_ind_table.3 ibv_destroy_rwq_ind_table.3
180 ibv_create_srq.3 ibv_destroy_srq.3
181 ibv_create_wq.3 ibv_destroy_wq.3
182- ibv_event_type_str.3 ibv_node_type_str.3
183- ibv_event_type_str.3 ibv_port_state_str.3
184 ibv_get_async_event.3 ibv_ack_async_event.3
185 ibv_get_cq_event.3 ibv_ack_cq_events.3
186- ibv_get_device_list.3 ibv_free_device_list.3
187 ibv_open_device.3 ibv_close_device.3
188 ibv_open_xrcd.3 ibv_close_xrcd.3
189- ibv_rate_to_mbps.3 mbps_to_ibv_rate.3
190- ibv_rate_to_mult.3 mult_to_ibv_rate.3
191 ibv_reg_mr.3 ibv_dereg_mr.3
192- ibv_wr_post.3 ibv_wr_abort.3
193- ibv_wr_post.3 ibv_wr_complete.3
194- ibv_wr_post.3 ibv_wr_start.3
195- ibv_wr_post.3 ibv_wr_atomic_cmp_swp.3
196- ibv_wr_post.3 ibv_wr_atomic_fetch_add.3
197- ibv_wr_post.3 ibv_wr_bind_mw.3
198- ibv_wr_post.3 ibv_wr_local_inv.3
199- ibv_wr_post.3 ibv_wr_rdma_read.3
200- ibv_wr_post.3 ibv_wr_rdma_write.3
201- ibv_wr_post.3 ibv_wr_rdma_write_imm.3
202- ibv_wr_post.3 ibv_wr_send.3
203- ibv_wr_post.3 ibv_wr_send_imm.3
204- ibv_wr_post.3 ibv_wr_send_inv.3
205- ibv_wr_post.3 ibv_wr_send_tso.3
206- ibv_wr_post.3 ibv_wr_set_inline_data.3
207- ibv_wr_post.3 ibv_wr_set_inline_data_list.3
208- ibv_wr_post.3 ibv_wr_set_sge.3
209- ibv_wr_post.3 ibv_wr_set_sge_list.3
210- ibv_wr_post.3 ibv_wr_set_ud_addr.3
211- ibv_wr_post.3 ibv_wr_set_xrc_srqn.3
212 )
213diff --git a/librdmacm/man/CMakeLists.txt b/librdmacm/man/CMakeLists.txt
214index 2d1efbff..d016c926 100644
215--- a/librdmacm/man/CMakeLists.txt
216+++ b/librdmacm/man/CMakeLists.txt
217@@ -20,7 +20,6 @@ rdma_man_pages(
218 rdma_destroy_qp.3
219 rdma_destroy_srq.3
220 rdma_disconnect.3
221- rdma_establish.3.md
222 rdma_event_str.3
223 rdma_free_devices.3
224 rdma_get_cm_event.3
225@@ -33,7 +32,6 @@ rdma_man_pages(
226 rdma_get_send_comp.3
227 rdma_get_src_port.3
228 rdma_getaddrinfo.3
229- rdma_init_qp_attr.3.md
230 rdma_join_multicast.3
231 rdma_join_multicast_ex.3
232 rdma_leave_multicast.3
233diff --git a/providers/efa/man/CMakeLists.txt b/providers/efa/man/CMakeLists.txt
234index d6a4f57b..376f293d 100644
235--- a/providers/efa/man/CMakeLists.txt
236+++ b/providers/efa/man/CMakeLists.txt
237@@ -1,4 +1,2 @@
238 rdma_man_pages(
239- efadv_create_driver_qp.3.md
240- efadv.7.md
241 )
242diff --git a/providers/mlx4/man/CMakeLists.txt b/providers/mlx4/man/CMakeLists.txt
243index 3df77caf..99a75101 100644
244--- a/providers/mlx4/man/CMakeLists.txt
245+++ b/providers/mlx4/man/CMakeLists.txt
246@@ -1,6 +1,5 @@
247 rdma_man_pages(
248 mlx4dv_init_obj.3
249 mlx4dv_query_device.3
250- mlx4dv_set_context_attr.3.md
251 mlx4dv.7
252 )
91diff --git a/providers/mlx5/man/CMakeLists.txt b/providers/mlx5/man/CMakeLists.txt 253diff --git a/providers/mlx5/man/CMakeLists.txt b/providers/mlx5/man/CMakeLists.txt
92index cdc7115e..876b6fcf 100644 254index 0bd9eba1..876b6fcf 100644
93--- a/providers/mlx5/man/CMakeLists.txt 255--- a/providers/mlx5/man/CMakeLists.txt
94+++ b/providers/mlx5/man/CMakeLists.txt 256+++ b/providers/mlx5/man/CMakeLists.txt
95@@ -1,5 +1,4 @@ 257@@ -1,72 +1,7 @@
96 rdma_man_pages( 258 rdma_man_pages(
259- mlx5dv_alloc_dm.3.md
260- mlx5dv_create_cq.3.md
261- mlx5dv_create_flow.3.md
262- mlx5dv_create_flow_action_modify_header.3.md
263- mlx5dv_create_flow_action_packet_reformat.3.md
264- mlx5dv_create_flow_matcher.3.md
265- mlx5dv_create_mkey.3.md
266- mlx5dv_create_qp.3.md
267- mlx5dv_devx_alloc_uar.3.md
268- mlx5dv_devx_create_cmd_comp.3.md
269- mlx5dv_devx_create_event_channel.3.md
270- mlx5dv_devx_get_event.3.md
271- mlx5dv_devx_obj_create.3.md
272- mlx5dv_devx_qp_modify.3.md
273- mlx5dv_devx_query_eqn.3.md
274- mlx5dv_devx_subscribe_devx_event.3.md
275- mlx5dv_devx_umem_reg.3.md
276- mlx5dv_dr_flow.3.md
97- mlx5dv_flow_action_esp.3.md 277- mlx5dv_flow_action_esp.3.md
98 mlx5dv_get_clock_info.3 278 mlx5dv_get_clock_info.3
99 mlx5dv_init_obj.3 279 mlx5dv_init_obj.3
280- mlx5dv_is_supported.3.md
281- mlx5dv_open_device.3.md
100 mlx5dv_query_device.3 282 mlx5dv_query_device.3
283 mlx5dv_ts_to_ns.3
284- mlx5dv_wr_post.3.md
285 mlx5dv.7
286 )
287-rdma_alias_man_pages(
288- mlx5dv_create_mkey.3 mlx5dv_destroy_mkey.3
289- mlx5dv_devx_alloc_uar.3 mlx5dv_devx_free_uar.3
290- mlx5dv_devx_create_cmd_comp.3 mlx5dv_devx_destroy_cmd_comp.3
291- mlx5dv_devx_create_event_channel.3 mlx5dv_devx_destroy_event_channel.3
292- mlx5dv_devx_create_cmd_comp.3 mlx5dv_devx_get_async_cmd_comp.3
293- mlx5dv_devx_obj_create.3 mlx5dv_devx_general_cmd.3
294- mlx5dv_devx_obj_create.3 mlx5dv_devx_obj_destroy.3
295- mlx5dv_devx_obj_create.3 mlx5dv_devx_obj_query.3
296- mlx5dv_devx_obj_create.3 mlx5dv_devx_obj_query_async.3
297- mlx5dv_devx_obj_create.3 mlx5dv_devx_obj_modify.3
298- mlx5dv_devx_qp_modify.3 mlx5dv_devx_qp_query.3
299- mlx5dv_devx_qp_modify.3 mlx5dv_devx_cq_modify.3
300- mlx5dv_devx_qp_modify.3 mlx5dv_devx_cq_query.3
301- mlx5dv_devx_qp_modify.3 mlx5dv_devx_wq_modify.3
302- mlx5dv_devx_qp_modify.3 mlx5dv_devx_wq_query.3
303- mlx5dv_devx_qp_modify.3 mlx5dv_devx_srq_modify.3
304- mlx5dv_devx_qp_modify.3 mlx5dv_devx_srq_query.3
305- mlx5dv_devx_qp_modify.3 mlx5dv_devx_ind_tbl_modify.3
306- mlx5dv_devx_qp_modify.3 mlx5dv_devx_ind_tbl_query.3
307- mlx5dv_devx_subscribe_devx_event.3 mlx5dv_devx_subscribe_devx_event_fd.3
308- mlx5dv_devx_umem_reg.3 mlx5dv_devx_umem_dereg.3
309- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_dest_table.3
310- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_dest_ibv_qp.3
311- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_dest_vport.3
312- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_flow_counter.3
313- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_drop.3
314- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_modify_header.3
315- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_packet_reformat.3
316- mlx5dv_dr_flow.3 mlx5dv_dr_action_create_tag.3
317- mlx5dv_dr_flow.3 mlx5dv_dr_action_destroy.3
318- mlx5dv_dr_flow.3 mlx5dv_dr_domain_create.3
319- mlx5dv_dr_flow.3 mlx5dv_dr_domain_destroy.3
320- mlx5dv_dr_flow.3 mlx5dv_dr_domain_sync.3
321- mlx5dv_dr_flow.3 mlx5dv_dr_matcher_create.3
322- mlx5dv_dr_flow.3 mlx5dv_dr_matcher_destroy.3
323- mlx5dv_dr_flow.3 mlx5dv_dr_rule_create.3
324- mlx5dv_dr_flow.3 mlx5dv_dr_rule_destroy.3
325- mlx5dv_dr_flow.3 mlx5dv_dr_table_create.3
326- mlx5dv_dr_flow.3 mlx5dv_dr_table_destroy.3
327- mlx5dv_wr_post.3 mlx5dv_wr_set_dc_addr.3
328- mlx5dv_wr_post.3 mlx5dv_qp_ex_from_ibv_qp_ex.3
329-)
101-- 330--
1022.17.1 3312.17.1
103 332
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch
deleted file mode 100644
index b04c9b723..000000000
--- a/meta-networking/recipes-support/rdma-core/rdma-core/0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From f2df1db11f3a9580774300e703b6f53dbcdb28ef Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 8 Jun 2018 20:17:57 -0700
4Subject: [PATCH] S_IFSOCK is defined in both glibc/musl
5
6Fixes
7
8preload.c:1183:46: error: '__S_IFSOCK' undeclared (first use in this function); did you mean 'S_IFSOCK'?
9
10Upstream-Status: Pending
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 librdmacm/preload.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/librdmacm/preload.c b/librdmacm/preload.c
18index 0f2aa250..d46beb1b 100644
19--- a/librdmacm/preload.c
20+++ b/librdmacm/preload.c
21@@ -1180,7 +1180,7 @@ int __fxstat(int ver, int socket, struct stat *buf)
22 if (fd_get(socket, &fd) == fd_rsocket) {
23 ret = real.fxstat(ver, socket, buf);
24 if (!ret)
25- buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
26+ buf->st_mode = (buf->st_mode & ~S_IFMT) | S_IFSOCK;
27 } else {
28 ret = real.fxstat(ver, fd, buf);
29 }
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch
deleted file mode 100644
index aa335244b..000000000
--- a/meta-networking/recipes-support/rdma-core/rdma-core/0001-include-endian.h-for-htole32-and-friends.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From 65b9a47c07be4611b4fbbcafff1993186bcb0537 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 12 Jun 2018 19:15:52 -0700
4Subject: [PATCH 1/2] include endian.h for htole32 and friends
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 providers/hns/hns_roce_u.h | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/providers/hns/hns_roce_u.h b/providers/hns/hns_roce_u.h
12index bd66c6e7..b07424db 100644
13--- a/providers/hns/hns_roce_u.h
14+++ b/providers/hns/hns_roce_u.h
15@@ -34,6 +34,7 @@
16 #define _HNS_ROCE_U_H
17
18 #include <stddef.h>
19+#include <endian.h>
20 #include <util/compiler.h>
21
22 #include <infiniband/driver.h>
23--
242.17.1
25
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch
deleted file mode 100644
index 347f964e9..000000000
--- a/meta-networking/recipes-support/rdma-core/rdma-core/0002-Remove-unused-include-for-execinfo.h.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From 3d9cae15c69c0b3260a024ad5d6802a8d85515a2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 12 Jun 2018 19:18:24 -0700
4Subject: [PATCH 2/2] Remove unused include for execinfo.h
5
6Fixes build on musl
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 providers/qedr/qelr_verbs.c | 1 -
11 1 file changed, 1 deletion(-)
12
13diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c
14index e3b01f28..2ee1c832 100644
15--- a/providers/qedr/qelr_verbs.c
16+++ b/providers/qedr/qelr_verbs.c
17@@ -54,7 +54,6 @@
18
19 #include <stdio.h>
20 #include <stdlib.h>
21-#include <execinfo.h>
22
23 #define QELR_SQE_ELEMENT_SIZE (sizeof(struct rdma_sq_sge))
24 #define QELR_RQE_ELEMENT_SIZE (sizeof(struct rdma_rq_sge))
25--
262.17.1
27
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch b/meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch
deleted file mode 100644
index e887f222b..000000000
--- a/meta-networking/recipes-support/rdma-core/rdma-core/0002-neigh.c-Do-not-include-net-if_packet.h.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From 82486f7e1ee2aa07a5c12cb357834993aa8c1d20 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 8 Jun 2018 20:19:13 -0700
4Subject: [PATCH] neigh.c: Do not include net/if_packet.h
5
6This header is glibc specific
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 libibverbs/neigh.c | 1 -
13 1 file changed, 1 deletion(-)
14
15diff --git a/libibverbs/neigh.c b/libibverbs/neigh.c
16index 21177db0..cfc593a0 100644
17--- a/libibverbs/neigh.c
18+++ b/libibverbs/neigh.c
19@@ -2,7 +2,6 @@
20 */
21
22 #include "config.h"
23-#include <net/if_packet.h>
24 #include <linux/netlink.h>
25 #include <linux/rtnetlink.h>
26 #include <endian.h>
diff --git a/meta-networking/recipes-support/rdma-core/rdma-core_18.1.bb b/meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb
index 6ad864d1e..b7a3dfc0d 100644
--- a/meta-networking/recipes-support/rdma-core/rdma-core_18.1.bb
+++ b/meta-networking/recipes-support/rdma-core/rdma-core_27.0.bb
@@ -5,14 +5,11 @@ SECTION = "libs"
5DEPENDS = "libnl" 5DEPENDS = "libnl"
6RDEPENDS_${PN} = "bash perl" 6RDEPENDS_${PN} = "bash perl"
7 7
8SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=stable-v18 \ 8BRANCH = "stable-v${@d.getVar('PV').split('.')[0]}"
9 file://0001-S_IFSOCK-is-defined-in-both-glibc-musl.patch \ 9SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=${BRANCH} \
10 file://0002-neigh.c-Do-not-include-net-if_packet.h.patch \
11 file://0001-include-endian.h-for-htole32-and-friends.patch \
12 file://0002-Remove-unused-include-for-execinfo.h.patch \
13 file://0001-Remove-man-files-which-cant-be-built.patch \ 10 file://0001-Remove-man-files-which-cant-be-built.patch \
14 " 11 "
15SRCREV = "7844b3fbe5120623d63b29ecb43eb83a61129658" 12SRCREV = "84caf035ae6123e2296b72006cd2cf698c65eb46"
16S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"
17 14
18#Default Dual License https://github.com/linux-rdma/rdma-core/blob/master/COPYING.md 15#Default Dual License https://github.com/linux-rdma/rdma-core/blob/master/COPYING.md
@@ -20,11 +17,26 @@ LICENSE = "BSD-2-Clause | GPLv2"
20LIC_FILES_CHKSUM = "file://COPYING.BSD_FB;md5=0ec18bae1a9df92c8d6ae01f94a289ae \ 17LIC_FILES_CHKSUM = "file://COPYING.BSD_FB;md5=0ec18bae1a9df92c8d6ae01f94a289ae \
21 file://COPYING.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263" 18 file://COPYING.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263"
22 19
20EXTRA_OECMAKE = " \
21 -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=${systemd_system_unitdir} \
22 -DCMAKE_INSTALL_PERLDIR=${libdir}/perl5/${@get_perl_version(d)} \
23"
23 24
24FILES_SOLIBSDEV = "" 25FILES_SOLIBSDEV = ""
25FILES_${PN} += "${libdir}/*" 26FILES_${PN} += "${libdir}/*"
26INSANE_SKIP_${PN} += "dev-so" 27INSANE_SKIP_${PN} += "dev-so"
27 28
28inherit cmake 29inherit cmake cpan-base systemd
30
31SYSTEMD_SERVICE_${PN} = " \
32 srp_daemon.service \
33 iwpmd.service \
34 ibacm.socket \
35 rdma-load-modules@.service \
36 srp_daemon_port@.service \
37 rdma-hw.target \
38 ibacm.service \
39"
40SYSTEMD_AUTO_ENABLE = "disable"
29 41
30OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" 42OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"