diff mbox

IB/mlx5: Fix signature rule constants according to FW specifications

Message ID 1390127858-9806-1-git-send-email-sagig@mellanox.com (mailing list archive)
State Rejected
Headers show

Commit Message

Sagi Grimberg Jan. 19, 2014, 10:37 a.m. UTC
Use DIF CRC INC with apptag escape (0x8) and update IP-CSUM entries.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
---
 drivers/infiniband/hw/mlx5/qp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Comments

Sagi Grimberg Jan. 19, 2014, 1:07 p.m. UTC | #1
On 1/19/2014 12:37 PM, Sagi Grimberg wrote:
> Use DIF CRC INC with apptag escape (0x8) and update IP-CSUM entries.
>
> Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
> ---
>   drivers/infiniband/hw/mlx5/qp.c |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
> index 7981620..58c4735 100644
> --- a/drivers/infiniband/hw/mlx5/qp.c
> +++ b/drivers/infiniband/hw/mlx5/qp.c
> @@ -1952,9 +1952,9 @@ static int format_selector(struct ib_sig_attrs *attr,
>   {
>   
>   #define FORMAT_DIF_NONE		0
> -#define FORMAT_DIF_CRC_INC	4
> -#define FORMAT_DIF_CSUM_INC	12
> -#define FORMAT_DIF_CRC_NO_INC	13
> +#define FORMAT_DIF_CRC_INC	8
> +#define FORMAT_DIF_CRC_NO_INC	12
> +#define FORMAT_DIF_CSUM_INC	13
>   #define FORMAT_DIF_CSUM_NO_INC	14
>   
>   	switch (domain->sig.dif.type) {

Just a clarification,

This patch along with "Fix smatch warnings" are incremental patches to 
v4 of pending Signature verbs patchset.

Sagi.
--
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/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index 7981620..58c4735 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -1952,9 +1952,9 @@  static int format_selector(struct ib_sig_attrs *attr,
 {
 
 #define FORMAT_DIF_NONE		0
-#define FORMAT_DIF_CRC_INC	4
-#define FORMAT_DIF_CSUM_INC	12
-#define FORMAT_DIF_CRC_NO_INC	13
+#define FORMAT_DIF_CRC_INC	8
+#define FORMAT_DIF_CRC_NO_INC	12
+#define FORMAT_DIF_CSUM_INC	13
 #define FORMAT_DIF_CSUM_NO_INC	14
 
 	switch (domain->sig.dif.type) {