aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/main.c
diff options
context:
space:
mode:
authorMark Bloch <markb@mellanox.com>2018-08-28 14:18:51 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-09-05 15:23:58 -0600
commitb4749bf25652689d8e33827460266b78bb2ec42c (patch)
tree335cb3604b988853c6976a643a332c3fd80bbf18 /drivers/infiniband/hw/mlx5/main.c
parentRDMA/uverbs: Add UVERBS_ATTR_CONST_IN to the specs language (diff)
downloadlinux-dev-b4749bf25652689d8e33827460266b78bb2ec42c.tar.xz
linux-dev-b4749bf25652689d8e33827460266b78bb2ec42c.zip
RDMA/mlx5: Add a new flow action verb - modify header
Expose the ability to create a flow action which changes packet headers. The data passed from userspace should be modify header actions as defined by HW specification. Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
-rw-r--r--drivers/infiniband/hw/mlx5/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index c414f3809e5c..d41419fb6b3e 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -3995,6 +3995,9 @@ static int mlx5_ib_destroy_flow_action(struct ib_flow_action *action)
*/
mlx5_accel_esp_destroy_xfrm(maction->esp_aes_gcm.ctx);
break;
+ case IB_FLOW_ACTION_UNSPECIFIED:
+ mlx5_ib_destroy_flow_action_raw(maction);
+ break;
default:
WARN_ON(true);
break;