summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorYotam Gigi <yotamg@mellanox.com>2016-11-11 16:34:25 +0100
committerDavid S. Miller <davem@davemloft.net>2016-11-13 12:51:00 -0500
commit2d644d4c7506646f9c4a2afceb7fd5f030bc0c9f (patch)
treef00e19c06fdbd7dccfad6e1223ed6bb451d849f6 /Documentation
parenta055450a3340fc0d9a6b39257e6710f121d92385 (diff)
mlxsw: spectrum: Fix refcount bug on span entries
When binding port to a newly created span entry, its refcount is initialized to zero even though it has a bound port. That leads to unexpected behaviour when the user tries to delete that port from the span entry. Fix this by initializing the reference count to 1. Also add a warning to put function. Fixes: 763b4b70afcd ("mlxsw: spectrum: Add support in matchall mirror TC offloading") Signed-off-by: Yotam Gigi <yotamg@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions