diff mbox

[rdma-next,V2,01/32] IB/core: Macro for RoCEv2 UDP port

Message ID 1450948698-13383-2-git-send-email-kamalh@mellanox.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Kamal Heib Dec. 24, 2015, 9:17 a.m. UTC
From: Amir Vadai <amirv@mellanox.com>

Adding a macro for RoCEv2 UDP destination port.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
---
 include/rdma/ib_verbs.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Leon Romanovsky Dec. 27, 2015, 6:58 a.m. UTC | #1
On Thu, Dec 24, 2015 at 11:17:47AM +0200, Kamal Heib wrote:
> From: Amir Vadai <amirv@mellanox.com>
> 
> Adding a macro for RoCEv2 UDP destination port.
You are adding define and not macro.

> 
> Signed-off-by: Amir Vadai <amirv@mellanox.com>
> Signed-off-by: Kamal Heib <kamalh@mellanox.com>
> ---
>  include/rdma/ib_verbs.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
> index 368fc22..9904394 100644
> --- a/include/rdma/ib_verbs.h
> +++ b/include/rdma/ib_verbs.h
> @@ -79,6 +79,8 @@ enum ib_gid_type {
>  	IB_GID_TYPE_SIZE
>  };
>  
> +#define ROCE_V2_UDP_DPORT      4791
> +
>  struct ib_gid_attr {
>  	enum ib_gid_type	gid_type;
>  	struct net_device	*ndev;
> -- 
> 1.8.3.1
> 
> --
> 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
--
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
Doug Ledford Feb. 19, 2016, 6:26 p.m. UTC | #2
On 12/27/2015 01:58 AM, Leon Romanovsky wrote:
> On Thu, Dec 24, 2015 at 11:17:47AM +0200, Kamal Heib wrote:
>> From: Amir Vadai <amirv@mellanox.com>
>>
>> Adding a macro for RoCEv2 UDP destination port.
> You are adding define and not macro.
> 
>>
>> Signed-off-by: Amir Vadai <amirv@mellanox.com>
>> Signed-off-by: Kamal Heib <kamalh@mellanox.com>
>> ---
>>  include/rdma/ib_verbs.h | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
>> index 368fc22..9904394 100644
>> --- a/include/rdma/ib_verbs.h
>> +++ b/include/rdma/ib_verbs.h
>> @@ -79,6 +79,8 @@ enum ib_gid_type {
>>  	IB_GID_TYPE_SIZE
>>  };
>>  
>> +#define ROCE_V2_UDP_DPORT      4791
>> +
>>  struct ib_gid_attr {
>>  	enum ib_gid_type	gid_type;
>>  	struct net_device	*ndev;
>> -- 
>> 1.8.3.1

This patch was skipped anwyay.  It was already added via a different
patchset some time ago.
diff mbox

Patch

diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 368fc22..9904394 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -79,6 +79,8 @@  enum ib_gid_type {
 	IB_GID_TYPE_SIZE
 };
 
+#define ROCE_V2_UDP_DPORT      4791
+
 struct ib_gid_attr {
 	enum ib_gid_type	gid_type;
 	struct net_device	*ndev;