aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 90955455884e..fcfa9825a816 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -1155,6 +1155,7 @@ int fib_table_insert(struct fib_table *tb, struct fib_config *cfg)
1155 err = netdev_switch_fib_ipv4_add(key, plen, fi, 1155 err = netdev_switch_fib_ipv4_add(key, plen, fi,
1156 new_fa->fa_tos, 1156 new_fa->fa_tos,
1157 cfg->fc_type, 1157 cfg->fc_type,
1158 cfg->fc_nlflags,
1158 tb->tb_id); 1159 tb->tb_id);
1159 if (err) { 1160 if (err) {
1160 netdev_switch_fib_ipv4_abort(fi); 1161 netdev_switch_fib_ipv4_abort(fi);
@@ -1201,7 +1202,9 @@ int fib_table_insert(struct fib_table *tb, struct fib_config *cfg)
1201 1202
1202 /* (Optionally) offload fib entry to switch hardware. */ 1203 /* (Optionally) offload fib entry to switch hardware. */
1203 err = netdev_switch_fib_ipv4_add(key, plen, fi, tos, 1204 err = netdev_switch_fib_ipv4_add(key, plen, fi, tos,
1204 cfg->fc_type, tb->tb_id); 1205 cfg->fc_type,
1206 cfg->fc_nlflags,
1207 tb->tb_id);
1205 if (err) { 1208 if (err) {
1206 netdev_switch_fib_ipv4_abort(fi); 1209 netdev_switch_fib_ipv4_abort(fi);
1207 goto out_free_new_fa; 1210 goto out_free_new_fa;