Skip to content

Commit 0528318

Browse files
tgrafdavem330
authored andcommitted
ip_tunnel: Provide tunnel metadata API for CONFIG_INET=n
Account for the configuration FIB_RULES=y && INET=n as FIB_RULES can be selected by IPV6 or DECNET without INET. Fixes: e703087 ("fib: Add fib rule match on tunnel id") Fixes: 3093fbe ("route: Per route IP tunnel metadata via lightweight tunnel") Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3985e8a commit 0528318

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

include/net/ip_tunnels.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,21 @@ static inline int ip_tunnel_collect_metadata(void)
314314
void ip_tunnel_need_metadata(void);
315315
void ip_tunnel_unneed_metadata(void);
316316

317+
#else /* CONFIG_INET */
318+
319+
static inline struct ip_tunnel_info *lwt_tun_info(struct lwtunnel_state *lwtstate)
320+
{
321+
return NULL;
322+
}
323+
324+
static inline void ip_tunnel_need_metadata(void)
325+
{
326+
}
327+
328+
static inline void ip_tunnel_unneed_metadata(void)
329+
{
330+
}
331+
317332
#endif /* CONFIG_INET */
318333

319334
#endif /* __NET_IP_TUNNELS_H */

0 commit comments

Comments
 (0)