[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 11 Nov 2015 14:01:47 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: alexei.starovoitov@...il.com
Cc: peterz@...radead.org, will.deacon@....com, daniel@...earbox.net,
arnd@...db.de, yang.shi@...aro.org, linaro-kernel@...ts.linaro.org,
eric.dumazet@...il.com, zlim.lnx@...il.com, ast@...nel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
xi.wang@...il.com, catalin.marinas@....com,
linux-arm-kernel@...ts.infradead.org, yhs@...mgrid.com,
bblanco@...mgrid.com
Subject: Re: [PATCH 2/2] arm64: bpf: add BPF XADD instruction
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
Date: Wed, 11 Nov 2015 10:11:33 -0800
> bpf_xadd was never meant to be __sync_fetch_and_add equivalent.
> From the day one it meant to be atomic_add() as kernel does it.
+1
> I did piggy back on __sync in the llvm backend because it was the quick
> and dirty way to move forward.
> In retrospect I should have introduced a clean intrinstic for that instead,
> but it's not too late to do it now. user space we can change at any time
> unlike kernel.
+1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists