-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mlx5: fix E-Switch mirror flow rule validation
[ upstream commit a8697f50f50f35b2078c78b2d9ea84f78a0f325e ] The port action and jump to flow table action are not supported in the mirror flows (RTE_FLOW_ACTION_TYPE_SAMPLE with sample ratio=1) in E-Switch domain (transfer attribute set) without presented encap action. The encap action is supported for uplink port only. So, if flow with mirroring contains encap action application should provide encap and uplink port actions in the mirror action list and PMD validates this condition (to make sure we cover the hardware limitation). This patch adds the validation for E-Switch mirror flow rule checking and rejects as invalid. Fixes: 6a95156 ("net/mlx5: support E-Switch mirroring and jump in one flow") Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com> Acked-by: Ori Kam <orika@nvidia.com>
- Loading branch information
1 parent
9f2c545
commit 986d9d2
Showing
2 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters