Re: [PATCH] net: xdp: Give compiler __always_inline hint for xdp_rxq_info_init()

2020-12-01 Thread Jesper Dangaard Brouer
On Mon, 30 Nov 2020 20:48:25 +0900 Leesoo Ahn wrote: > The function has only a statement of calling memset() to > clear xdp_rxq object. Let it always be an inline function. No, this is the wrong approach. The function is already "static", and the compiler have likely already inlined this code,

[PATCH] net: xdp: Give compiler __always_inline hint for xdp_rxq_info_init()

2020-11-30 Thread Leesoo Ahn
The function has only a statement of calling memset() to clear xdp_rxq object. Let it always be an inline function. Signed-off-by: Leesoo Ahn --- net/core/xdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/xdp.c b/net/core/xdp.c index 48aba933a5a8..dab72b9a71a1