]> git.ipfire.org Git - thirdparty/iproute2.git/commit
rdma: do not mix newline and json object
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 2 Jan 2024 23:53:04 +0000 (15:53 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 4 Jan 2024 00:48:33 +0000 (16:48 -0800)
commita903854bad1c5121b35f0f22af18c66a847d20de
tree1927b29dab4d70f46f4f9da0f7a2a5fcefb5c2b8
parent27a477ba80da1c2fa755825090b17d7a5d52ceff
rdma: do not mix newline and json object

Mixing the semantics of ending lines with the json object
leads to several bugs where json object is closed twice, etc.
Replace by breaking the meaning of newline() function into
two parts.

Now, lots of functions were taking the rdma data structure as
argument but never using it.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
16 files changed:
rdma/dev.c
rdma/link.c
rdma/rdma.h
rdma/res-cmid.c
rdma/res-cq.c
rdma/res-ctx.c
rdma/res-mr.c
rdma/res-pd.c
rdma/res-qp.c
rdma/res-srq.c
rdma/res.c
rdma/res.h
rdma/stat-mr.c
rdma/stat.c
rdma/stat.h
rdma/utils.c