]> git.baikalelectronics.ru Git - kernel.git/commit
docs: bpf: Clarify BPF_CMPXCHG wording
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 10 Feb 2021 14:28:52 +0000 (15:28 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Feb 2021 06:01:13 +0000 (22:01 -0800)
commit5d8abb7f9a60a4ddd67c8f19fbe230bd345d1b3d
tree8ac323eeaf198fc99730c65495799149aa85e880
parente45c3330c6816a07cb9da3a9cefc235086e11ff3
docs: bpf: Clarify BPF_CMPXCHG wording

Based on [1], BPF_CMPXCHG should always load the old value into R0. The
phrasing in bpf.rst is somewhat ambiguous in this regard, improve it to
make this aspect crystal clear.

  [1] https://lore.kernel.org/bpf/CAADnVQJFcFwxEz=wnV=hkie-EDwa8s5JGbBQeFt1TGux1OihJw@mail.gmail.com/

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210210142853.82203-1-iii@linux.ibm.com
Documentation/networking/filter.rst