Re: [PATCH 1/1] xdp: compact the function xsk_map_inc

2020-11-23 Thread Magnus Karlsson
On Sun, Nov 22, 2020 at 10:07 AM Zhu Yanjun wrote: > > From: Zhu Yanjun > > The function xsk_map_inc always returns zero. As such, changing the > return type to void and removing the test code. > > Signed-off-by: Zhu Yanjun > Signed-off-by: Zhu Yanjun > --- > net/xdp/xsk.c|1 - > net/x

[PATCH 1/1] xdp: compact the function xsk_map_inc

2020-11-22 Thread Zhu Yanjun
From: Zhu Yanjun The function xsk_map_inc always returns zero. As such, changing the return type to void and removing the test code. Signed-off-by: Zhu Yanjun Signed-off-by: Zhu Yanjun --- net/xdp/xsk.c|1 - net/xdp/xsk.h|2 +- net/xdp/xskmap.c | 10 ++ 3 files chang