Thread (6 messages) 6 messages, 3 authors, 2021-03-29

Re: [PATCH rdma-next] RDMA: Support more than 255 rdma ports

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-03-01 12:49:50
Also in: linux-rdma, target-devel

On Mon, Mar 01, 2021 at 09:04:20AM +0200, Leon Romanovsky wrote:
quoted hunk ↗ jump to hunk
@@ -884,7 +884,7 @@ static void gid_table_reserve_default(struct ib_device *ib_dev, u8 port,

 static void gid_table_release_one(struct ib_device *ib_dev)
 {
-	unsigned int p;
+	u32 p;

 	rdma_for_each_port (ib_dev, p) {
 		release_gid_table(ib_dev, ib_dev->port_data[p].cache.gid);
@@ -895,7 +895,7 @@ static void gid_table_release_one(struct ib_device *ib_dev)
 static int _gid_table_setup_one(struct ib_device *ib_dev)
 {
 	struct ib_gid_table *table;
-	unsigned int rdma_port;
+	u32 rdma_port;

 	rdma_for_each_port (ib_dev, rdma_port) {
Why are we changing this? 'unsigned int' is the right type for port
numbers

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help