diff mbox

[for-next,1/3] IB/core: Add optional AV attribute for Raw Packet QP in INIT to RTR

Message ID 1467549727-23479-2-git-send-email-leon@kernel.org (mailing list archive)
State Changes Requested
Headers show

Commit Message

Leon Romanovsky July 3, 2016, 12:42 p.m. UTC
From: Talat Batheesh <talatb@mellanox.com>

In order to configure QoS for Raw Packet QP, the user passes the SL
in the AV attribute when modifying the QP from INIT to RTR state.

This SL is used later on to set the Ethernet Priority of the QP.

Until today, we couldn't pass the AV attribute for Raw Packet QP
because it was blocked in the QP state transition matrix. This
patch adds the AV as optional in INIT to RTR.

Fixes: 8a51866f0810 ('IB: Add ib_modify_qp_is_ok() library function')
Signed-off-by: Talat Batheesh <talatb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
---
 drivers/infiniband/core/verbs.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Or Gerlitz July 3, 2016, 9:51 p.m. UTC | #1
On Sun, Jul 3, 2016 at 3:42 PM, Leon Romanovsky <leon@kernel.org> wrote:
> From: Talat Batheesh <talatb@mellanox.com>
>
> In order to configure QoS for Raw Packet QP, the user passes the SL
> in the AV attribute when modifying the QP from INIT to RTR state.
>
> This SL is used later on to set the Ethernet Priority of the QP.
>
> Until today, we couldn't pass the AV attribute for Raw Packet QP
> because it was blocked in the QP state transition matrix. This
> patch adds the AV as optional in INIT to RTR.
>
> Fixes: 8a51866f0810 ('IB: Add ib_modify_qp_is_ok() library function')

This commit is 10y old and was done way before RAW Packet QP was added
to the kernel, please fix your Fixes: line...
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jason Gunthorpe July 4, 2016, 3:33 p.m. UTC | #2
On Mon, Jul 04, 2016 at 12:51:00AM +0300, Or Gerlitz wrote:
> On Sun, Jul 3, 2016 at 3:42 PM, Leon Romanovsky <leon@kernel.org> wrote:
> > From: Talat Batheesh <talatb@mellanox.com>
> >
> > In order to configure QoS for Raw Packet QP, the user passes the SL
> > in the AV attribute when modifying the QP from INIT to RTR state.
> >
> > This SL is used later on to set the Ethernet Priority of the QP.
> >
> > Until today, we couldn't pass the AV attribute for Raw Packet QP
> > because it was blocked in the QP state transition matrix. This
> > patch adds the AV as optional in INIT to RTR.
> >
> > Fixes: 8a51866f0810 ('IB: Add ib_modify_qp_is_ok() library function')
> 
> This commit is 10y old and was done way before RAW Packet QP was added
> to the kernel, please fix your Fixes: line...

It isn't a fixes if you are adding a new feature.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leon Romanovsky July 5, 2016, 6:17 a.m. UTC | #3
On Mon, Jul 04, 2016 at 09:33:37AM -0600, Jason Gunthorpe wrote:
> On Mon, Jul 04, 2016 at 12:51:00AM +0300, Or Gerlitz wrote:
> > On Sun, Jul 3, 2016 at 3:42 PM, Leon Romanovsky <leon@kernel.org> wrote:
> > > From: Talat Batheesh <talatb@mellanox.com>
> > >
> > > In order to configure QoS for Raw Packet QP, the user passes the SL
> > > in the AV attribute when modifying the QP from INIT to RTR state.
> > >
> > > This SL is used later on to set the Ethernet Priority of the QP.
> > >
> > > Until today, we couldn't pass the AV attribute for Raw Packet QP
> > > because it was blocked in the QP state transition matrix. This
> > > patch adds the AV as optional in INIT to RTR.
> > >
> > > Fixes: 8a51866f0810 ('IB: Add ib_modify_qp_is_ok() library function')
> > 
> > This commit is 10y old and was done way before RAW Packet QP was added
> > to the kernel, please fix your Fixes: line...
> 
> It isn't a fixes if you are adding a new feature.

You are right, I'll resubmit.

> 
> Jason
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
index 2e813ed..ba75780 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -932,6 +932,7 @@  static const struct {
 						 IB_QP_QKEY),
 				 [IB_QPT_GSI] = (IB_QP_PKEY_INDEX		|
 						 IB_QP_QKEY),
+				 [IB_QPT_RAW_PACKET] = IB_QP_AV,
 			 },
 		},
 	},