[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201130114825.10898-1-lsahn@ooseel.net>
Date: Mon, 30 Nov 2020 20:48:25 +0900
From: Leesoo Ahn <dev@...eel.net>
To: lsahn@...eel.net
Cc: "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Jesper Dangaard Brouer <hawk@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
netdev@...r.kernel.org, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] net: xdp: Give compiler __always_inline hint for xdp_rxq_info_init()
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 <lsahn@...eel.net>
---
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 100644
--- a/net/core/xdp.c
+++ b/net/core/xdp.c
@@ -151,7 +151,7 @@ void xdp_rxq_info_unreg(struct xdp_rxq_info *xdp_rxq)
}
EXPORT_SYMBOL_GPL(xdp_rxq_info_unreg);
-static void xdp_rxq_info_init(struct xdp_rxq_info *xdp_rxq)
+static __always_inline void xdp_rxq_info_init(struct xdp_rxq_info *xdp_rxq)
{
memset(xdp_rxq, 0, sizeof(*xdp_rxq));
}
--
2.26.2
Powered by blists - more mailing lists