Function str2tunnel_key() was never used.
Fixes: 42468fb6df61a ("expr: add support for matching tunnel metadata")
Signed-off-by: Phil Sutter <phil@nwl.cc>
return "unknown";
}
-static inline int str2tunnel_key(const char *str)
-{
- int i;
-
- for (i = 0; i <= NFT_TUNNEL_MAX; i++) {
- if (strcmp(str, tunnel_key2str_array[i]) == 0)
- return i;
- }
-
- errno = EINVAL;
- return -1;
-}
-
static int
nftnl_expr_tunnel_snprintf_default(char *buf, size_t len,
const struct nftnl_expr *e)