diff options
author | Hamdan Igbaria <hamdani@nvidia.com> | 2020-06-15 18:18:14 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2020-09-30 21:26:28 -0700 |
commit | 01723919675dfa8d984b2b80b93092f39a4a84de (patch) | |
tree | ed201a6d6dfa3f6ef0dac2800b1dfdd7854ca08d /security | |
parent | e6b69bf379b2423d4603cf265adf4cb050f4dab5 (diff) |
net/mlx5: DR, Add support for rule creation with flow source hint
Skip the rule according to flow arrival source, in case of RX and the
source is local port skip and in case of TX and the source is uplink
skip, we get this info according to the flow source hint we get from
upper layers when creating the rule.
This is needed because for example in case of FDB table which has a TX
and RX tables and we are inserting a rule with an encap action which
is only a TX action, in this case rule will fail on RX, so we can rely
on the flow source hint and skip RX in such case.
Until now we relied on metadata regc_0 that upper layer mapped the
port in the regc_0, but the problem is that upper layer did not always
use regc_0 for port mapping, so now we added support to flow source
hint which upper layers will pass to SW steering when creating a rule.
Signed-off-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Hamdan Igbaria <hamdani@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions