net/mlx5: limit priority range for Linux TC flower driver
authorYongseok Koh <yskoh@mellanox.com>
Sat, 3 Nov 2018 17:10:33 +0000 (17:10 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commite7d2e32b26f83b69128f80a7d025dca149c5a126
tree112517f1e45666e4886a7e100e2a3b4c9ec32cea
parent09d8b41699bb0d90f736015a977fd3613769b4e0
net/mlx5: limit priority range for Linux TC flower driver

Due to a limitation on driver/FW, priority ranges from 1 to 16 in kernel.
Priority in rte_flow attribute starts from 0 and is added by 1 in
translation. This is subject to be changed to determine the max priority
based on trial-and-error like Verbs driver once the restriction is lifted
or the range is extended.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_flow_tcf.c