freebsd-dev/sys/ofed/include/rdma
Hans Petter Selasky c3987b8ea7 ibcore: Declare ib_post_send() and ib_post_recv() arguments const
Since neither ib_post_send() nor ib_post_recv() modify the data structure
their second argument points at, declare that argument const. This change
makes it necessary to declare the 'bad_wr' argument const too and also to
modify all ULPs that call ib_post_send(), ib_post_recv() or
ib_post_srq_recv(). This patch does not change any functionality but makes
it possible for the compiler to verify whether the
ib_post_(send|recv|srq_recv) really do not modify the posted work request.

Linux commit:
f696bf6d64b195b83ca1bdb7cd33c999c9dcf514
7bb1fafc2f163ad03a2007295bb2f57cfdbfb630
d34ac5cd3a73aacd11009c4fc3ba15d7ea62c411

MFC after:	1 week
Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2021-07-12 14:22:33 +02:00
..
ib_addr_freebsd.h LinuxKPI/OFED/mlx4: cleanup netdevice.h some more 2021-05-26 12:30:02 +00:00
ib_addr.h mlx4/OFED: replace the struct net_device with struct ifnet 2021-06-18 21:20:08 +00:00
ib_cache.h mlx4/OFED: replace the struct net_device with struct ifnet 2021-06-18 21:20:08 +00:00
ib_cm.h ibcore: Add rdma_reject_msg() helper function. 2021-07-12 14:22:30 +02:00
ib_fmr_pool.h
ib_hdrs.h
ib_mad.h OFED: Fix ib_mad.h ib_user_mad.h include to match new uapi path 2019-08-17 03:09:03 +00:00
ib_marshall.h
ib_pack.h
ib_pma.h
ib_sa.h mlx4/OFED: replace the struct net_device with struct ifnet 2021-06-18 21:20:08 +00:00
ib_smi.h
ib_umem_odp.h
ib_umem.h
ib_verbs.h ibcore: Declare ib_post_send() and ib_post_recv() arguments const 2021-07-12 14:22:33 +02:00
ib.h
iw_cm.h ibcore: Add rdma_reject_msg() helper function. 2021-07-12 14:22:30 +02:00
iw_portmap.h
opa_port_info.h
opa_smi.h
rdma_cm_ib.h
rdma_cm.h ibcore: Define option to set ack timeout. 2021-07-12 14:22:32 +02:00
rdma_sdp.h OFED: Fix accidental double-copy of rdma_sdp.h in r351176 2019-08-18 04:19:41 +00:00
rdma_vt.h
rdmavt_cq.h
rdmavt_mr.h
rdmavt_qp.h