[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9B0331B6EBBD0E4684FBFAEDA55776F92CD6858D@HASMSX110.ger.corp.intel.com>
Date: Mon, 20 Jun 2016 05:20:55 +0000
From: "Rosen, Rami" <rami.rosen@...el.com>
To: Netanel Belgazal <netanel@...apurnalabs.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"davm@...emeloft.net" <davm@...emeloft.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "zorik@...apurnalabs.com" <zorik@...apurnalabs.com>,
"saeed@...apurnalabs.com" <saeed@...apurnalabs.com>,
"alex@...apurnalabs.com" <alex@...apurnalabs.com>,
"msw@...zon.com" <msw@...zon.com>,
"aligouri@...zon.com" <aligouri@...zon.com>,
"antoine.tenart@...e-electrons.com"
<antoine.tenart@...e-electrons.com>,
"Rosen, Rami" <rami.rosen@...el.com>
Subject: RE: [PATCH net-next] net: ena: Add a driver for Amazon Elastic
Network Adapters (ENA)
Hi all,
A very limited review below.
+
+ /* get capabilities of particular feature */
+ ENA_ADMIN_GET_FEATURE = 8,
Instead /* get capabilities SHOULD BE: /* set capabilities .....
+
+ /* get capabilities of particular feature */
+ ENA_ADMIN_SET_FEATURE = 9,
+
..
+int ena_com_set_hash_ctrl(struct ena_com_dev *ena_dev)
+{
+ struct ena_com_admin_queue *admin_queue = &ena_dev->admin_queue;
...
You set ret=-EINVAL, but you do not use this ret as you immediately return 0 in the next line, which is the end of the method. Either return ret or return -EINVAL.
+ if (unlikely(ret)) {
+ ena_trc_err("Failed to set hash input. error: %d\n", ret);
+ ret = -EINVAL;
+ }
+
+ return 0;
+}
+
+
+/* ena_com_set_mmio_read_mode - Enable/disable the mmio reg read mechanism
+ * @ena_dev: ENA communication layer struct
Instead realess_supported: SHOULD BE: readless_supported
+ * @realess_supported: readless mode (enable/disable)
+ */
+void ena_com_set_mmio_read_mode(struct ena_com_dev *ena_dev,
+ bool readless_supported);
+
+
+/* ena_com_create_io_queue - Create io queue.
+ * @ena_dev: ENA communication layer struct
Instead ena_com_create_io_ctx SHOULD BE: @ena_com_create_io_ctx
+ * ena_com_create_io_ctx - create context structure
+ *
+ * Create the submission and the completion queues.
+ *
+ * @return - 0 on success, negative value on failure.
+ */
+int ena_com_create_io_queue(struct ena_com_dev *ena_dev,
+ struct ena_com_create_io_ctx *ctx);
+
+/* ena_com_admin_destroy - Destroy IO queue with the queue id - qid.
+ * @ena_dev: ENA communication layer struct
Missing: @qid
+ */
+void ena_com_destroy_io_queue(struct ena_com_dev *ena_dev, u16 qid);
+
Regards,
Rami Rosen
Intel Corporation
Powered by blists - more mailing lists