]> git.baikalelectronics.ru Git - kernel.git/commit
spectrum: acl_tcam: Fix catchall prio value
authorJiri Pirko <jiri@mellanox.com>
Tue, 7 Feb 2017 16:27:47 +0000 (17:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 19:15:21 +0000 (14:15 -0500)
commit3f0cc74f8ce2b911c760839003cad2c69b0aa840
treeb56561b808c5dd56cc576bcb2d302dc1338e5008
parent200134d6bccb73d0bc9e37485012d54c14a59df6
spectrum: acl_tcam: Fix catchall prio value

This fixes an issue reported by smatch:
mlxsw_sp_acl_tcam_chunk_create() warn: impossible condition '(priority == (-1)) => (0-u32max == u64max)'

Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: c8ec716327b8 ("mlxsw: spectrum: Introduce ACL core with simple TCAM implementation")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c