提交 3a09fae0 编写于 作者: M Mark Bloch 提交者: Saeed Mahameed

net/mlx5: fs, an FTE should have no dests when deleted

When deleting an FTE it should have no dests, which means
fte->dests_size should be 0. Add a WARN_ON() to catch bugs
where the proper tracking wasn't done.
Signed-off-by: NMark Bloch <mbloch@nvidia.com>
Reviewed-by: NMaor Gottlieb <maorg@nvidia.com>
Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
上级 72191a4c
...@@ -605,6 +605,7 @@ static void del_hw_fte(struct fs_node *node) ...@@ -605,6 +605,7 @@ static void del_hw_fte(struct fs_node *node)
fs_get_obj(ft, fg->node.parent); fs_get_obj(ft, fg->node.parent);
trace_mlx5_fs_del_fte(fte); trace_mlx5_fs_del_fte(fte);
WARN_ON(fte->dests_size);
dev = get_dev(&ft->node); dev = get_dev(&ft->node);
root = find_root(&ft->node); root = find_root(&ft->node);
if (node->active) { if (node->active) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册