Home
last modified time | relevance | path

Searched refs:dmfs_rule (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_dmfs.c34 struct mlx5_ct_fs_dmfs_rule *dmfs_rule; in mlx5_ct_fs_dmfs_ct_rule_add() local
37 dmfs_rule = kzalloc(sizeof(*dmfs_rule), GFP_KERNEL); in mlx5_ct_fs_dmfs_ct_rule_add()
38 if (!dmfs_rule) in mlx5_ct_fs_dmfs_ct_rule_add()
41 dmfs_rule->rule = mlx5_tc_rule_insert(priv, spec, attr); in mlx5_ct_fs_dmfs_ct_rule_add()
42 if (IS_ERR(dmfs_rule->rule)) { in mlx5_ct_fs_dmfs_ct_rule_add()
43 err = PTR_ERR(dmfs_rule->rule); in mlx5_ct_fs_dmfs_ct_rule_add()
48 dmfs_rule->attr = attr; in mlx5_ct_fs_dmfs_ct_rule_add()
50 return &dmfs_rule->fs_rule; in mlx5_ct_fs_dmfs_ct_rule_add()
53 kfree(dmfs_rule); in mlx5_ct_fs_dmfs_ct_rule_add()
64 mlx5_tc_rule_delete(netdev_priv(fs->netdev), dmfs_rule->rule, dmfs_rule->attr); in mlx5_ct_fs_dmfs_ct_rule_del()
[all …]