summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5.h
diff options
context:
space:
mode:
authorMoti Haimovsky <motih@mellanox.com>2019-09-09 18:56:46 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2019-09-20 10:19:41 +0200
commit9aee7a8418d4490c232084633a10682e9c0a66d5 (patch)
tree533b753a2b92a4a0c115f41cd0fa2d00c44d6c7e /drivers/net/mlx5/mlx5.h
parentb41e47da259290084965c1f5b9f1012c809e9444 (diff)
downloaddpdk-9aee7a8418d4490c232084633a10682e9c0a66d5.zip
dpdk-9aee7a8418d4490c232084633a10682e9c0a66d5.tar.gz
dpdk-9aee7a8418d4490c232084633a10682e9c0a66d5.tar.xz
net/mlx5: support push flow action on VLAN header
This commit adds support for RTE_FLOW_ACTION_TYPE_OF_PUSH_VLAN using direct verbs flow rules. If present in the flow, The VLAN default values are taken from the VLAN item configuration. In this commit only the VLAN TPID value can be set since VLAN modification actions are not supported yet. Signed-off-by: Moti Haimovsky <motih@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5.h')
-rw-r--r--drivers/net/mlx5/mlx5.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h
index a18f588..dbdc3ce 100644
--- a/drivers/net/mlx5/mlx5.h
+++ b/drivers/net/mlx5/mlx5.h
@@ -579,6 +579,8 @@ struct mlx5_ibv_shared {
LIST_HEAD(jump, mlx5_flow_dv_jump_tbl_resource) jump_tbl;
LIST_HEAD(port_id_action_list, mlx5_flow_dv_port_id_action_resource)
port_id_action_list; /* List of port ID actions. */
+ LIST_HEAD(push_vlan_action_list, mlx5_flow_dv_push_vlan_action_resource)
+ push_vlan_action_list; /* List of push VLAN actions. */
struct mlx5_flow_counter_mng cmng; /* Counters management structure. */
/* Shared interrupt handler section. */
pthread_mutex_t intr_mutex; /* Interrupt config mutex. */