Re: [PATCHv2 1/1] xdp: remove the function xsk_map_inc

2020-11-23 Thread Magnus Karlsson
On Mon, Nov 23, 2020 at 2:37 PM Zhu Yanjun wrote: > > On Mon, Nov 23, 2020 at 8:19 PM Magnus Karlsson > wrote: > > > > On Mon, Nov 23, 2020 at 1:11 PM Zhu Yanjun wrote: > > > > > > On Mon, Nov 23, 2020 at 8:05 PM wrote: > > > > > > > > From: Zhu Yanjun > > > > > > > > The function xsk_map_inc

Re: [PATCHv2 1/1] xdp: remove the function xsk_map_inc

2020-11-23 Thread Zhu Yanjun
On Mon, Nov 23, 2020 at 8:19 PM Magnus Karlsson wrote: > > On Mon, Nov 23, 2020 at 1:11 PM Zhu Yanjun wrote: > > > > On Mon, Nov 23, 2020 at 8:05 PM wrote: > > > > > > From: Zhu Yanjun > > > > > > The function xsk_map_inc is a simple wrapper of bpf_map_inc and > > > always returns zero. As such

Re: [PATCHv2 1/1] xdp: remove the function xsk_map_inc

2020-11-23 Thread Magnus Karlsson
On Mon, Nov 23, 2020 at 1:11 PM Zhu Yanjun wrote: > > On Mon, Nov 23, 2020 at 8:05 PM wrote: > > > > From: Zhu Yanjun > > > > The function xsk_map_inc is a simple wrapper of bpf_map_inc and > > always returns zero. As such, replacing this function with bpf_map_inc > > and removing the test code.

Re: [PATCHv2 1/1] xdp: remove the function xsk_map_inc

2020-11-23 Thread Zhu Yanjun
On Mon, Nov 23, 2020 at 8:05 PM wrote: > > From: Zhu Yanjun > > The function xsk_map_inc is a simple wrapper of bpf_map_inc and > always returns zero. As such, replacing this function with bpf_map_inc > and removing the test code. > > Signed-off-by: Zhu Yanjun > --- > net/xdp/xsk.c| 1 -