gobuffer: Add gobuffer__sort() helper
commit2046cc50578beb4409bde5492f606fab23039932
authorDaniel Xu <dxu@dxuuu.xyz>
Mon, 25 Mar 2024 17:53:37 +0000 (25 11:53 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Apr 2024 17:27:32 +0000 (23 14:27 -0300)
tree201726bc61738861bda9012bc78d71a4d216d75c
parent9aba4c9220eebf81986dfc680964ba59578e55bd
gobuffer: Add gobuffer__sort() helper

Add a helper to sort the gobuffer. Trivial wrapper around qsort().

Committer notes:

As pointed out by Alan Maguire, there is no need to cast the first
qsort() argument to void, remove that cast.

Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/ba9ff49e099583ab854d3d3c8c215c3ca1b6f930.1711389163.git.dxu@dxuuu.xyz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
gobuffer.c
gobuffer.h