[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <55098F4A.3010309@mellanox.com>
Date: Wed, 18 Mar 2015 16:44:26 +0200
From: Or Gerlitz <ogerlitz@...lanox.com>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
"David S. Miller" <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, Amir Vadai <amirv@...lanox.com>,
Tal Alon <talal@...lanox.com>,
Hadar Har-Zion <hadarh@...lanox.com>,
Majd Dibbiny <majd@...lanox.com>,
Eran Ben Elisha <eranbe@...lanox.com>
Subject: Re: [PATCH net 3/4] IB/mlx4: Saturate RoCE port PMA counters in case
of overflow
On 3/18/2015 4:36 PM, Sergei Shtylyov wrote:
>> diff --git a/drivers/infiniband/hw/mlx4/mad.c
>> b/drivers/infiniband/hw/mlx4/mad.c
>> index c761971..40850f1 100644
>> --- a/drivers/infiniband/hw/mlx4/mad.c
>> +++ b/drivers/infiniband/hw/mlx4/mad.c
>> @@ -64,6 +64,17 @@ enum {
>> #define GUID_TBL_BLK_NUM_ENTRIES 8
>> #define GUID_TBL_BLK_SIZE (GUID_TBL_ENTRY_SIZE *
>> GUID_TBL_BLK_NUM_ENTRIES)
>>
>> +#define MAX_BE32 0xffffffffULL
>> +#define MAX_BE16 0xffffUL
>
> Aren't U{16|32}_MAX from <linux/kernel.h> good enough?
> And I'm not seeing wheer MAX_BE16 is used...
>
> [...]
sure, I will roll now quick fix for both issues...thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists