]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/netfilter/nft_meta.c
netfilter: nf_tables: force module load in case select_ops() returns -EAGAIN
[linux.git] / net / netfilter / nft_meta.c
index 18a848b0175971d7d39aaf4d061630a9e298acdc..417f8d32e9a3963508f1b4c445d6c558e1f93da0 100644 (file)
@@ -519,6 +519,10 @@ nft_meta_select_ops(const struct nft_ctx *ctx,
        if (tb[NFTA_META_DREG] && tb[NFTA_META_SREG])
                return ERR_PTR(-EINVAL);
 
+#ifdef CONFIG_NF_TABLES_BRIDGE
+       if (ctx->family == NFPROTO_BRIDGE)
+               return ERR_PTR(-EAGAIN);
+#endif
        if (tb[NFTA_META_DREG])
                return &nft_meta_get_ops;