Re: [PATCH rdma-next v1 12/15] RDMA/mlx5: Add a new flow action verb - modify header

2018-09-05 Thread Leon Romanovsky
On Wed, Sep 05, 2018 at 10:38:42AM -0600, Jason Gunthorpe wrote: > On Wed, Sep 05, 2018 at 08:20:44AM +0300, Leon Romanovsky wrote: > > On Tue, Sep 04, 2018 at 03:58:23PM -0600, Jason Gunthorpe wrote: > > > On Tue, Aug 28, 2018 at 02:18:51PM +0300, Leon Romanovsky wrote: > > > > > > > +static int

Re: [PATCH rdma-next v1 12/15] RDMA/mlx5: Add a new flow action verb - modify header

2018-09-05 Thread Jason Gunthorpe
On Wed, Sep 05, 2018 at 08:20:44AM +0300, Leon Romanovsky wrote: > On Tue, Sep 04, 2018 at 03:58:23PM -0600, Jason Gunthorpe wrote: > > On Tue, Aug 28, 2018 at 02:18:51PM +0300, Leon Romanovsky wrote: > > > > > +static int > > > UVERBS_HANDLER(MLX5_IB_METHOD_FLOW_ACTION_CREATE_MODIFY_HEADER)( > >

Re: [PATCH rdma-next v1 12/15] RDMA/mlx5: Add a new flow action verb - modify header

2018-09-04 Thread Leon Romanovsky
On Tue, Sep 04, 2018 at 03:58:23PM -0600, Jason Gunthorpe wrote: > On Tue, Aug 28, 2018 at 02:18:51PM +0300, Leon Romanovsky wrote: > > > +static int UVERBS_HANDLER(MLX5_IB_METHOD_FLOW_ACTION_CREATE_MODIFY_HEADER)( > > + struct ib_uverbs_file *file, > > + struct uverbs_attr_bundle *attrs) > > +

Re: [PATCH rdma-next v1 12/15] RDMA/mlx5: Add a new flow action verb - modify header

2018-09-04 Thread Jason Gunthorpe
On Tue, Aug 28, 2018 at 02:18:51PM +0300, Leon Romanovsky wrote: > +static int UVERBS_HANDLER(MLX5_IB_METHOD_FLOW_ACTION_CREATE_MODIFY_HEADER)( > + struct ib_uverbs_file *file, > + struct uverbs_attr_bundle *attrs) > +{ > + struct ib_uobject *uobj = uverbs_attr_get_uobject( > +

[PATCH rdma-next v1 12/15] RDMA/mlx5: Add a new flow action verb - modify header

2018-08-28 Thread Leon Romanovsky
From: Mark Bloch 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 Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/flow.c | 134