Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1426213
| Path | csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Rosen, Rami" <rami.rosen@intel.com> |
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA) |
| Date | Mon, 20 Jun 2016 07:40:02 +0200 |
| Message-ID | <rM06e-48L-3@gated-at.bofh.it> (permalink) |
| References | <rJvT0-3Sn-13@gated-at.bofh.it> |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.26,496,1459839600"; d="scan'208";a="991134948" |
| Thread-Topic | [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA) |
| Thread-Index | AQHRxVDGpT6kAtlSG0KHtgv6iqr3PJ/x2Fvg |
| Accept-Language | en-US |
| Content-Language | en-US |
| X-Titus-Metadata-40 | eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTE2YTQxZjQtOTQwNy00MDk3LWI1ZjAtNDRiMDZkNmI4MDJhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InVTUEd2ajZGNEFtYXQxcXVBRU5NcWRCNllqTG5xVHhcL29uRlwvakh5QVltTT0ifQ== |
| X-Ctpclassification | CTP_IC |
| X-Originating-IP | [10.184.70.10] |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 8BIT |
| MIME-Version | 1.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 79 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "zorik@annapurnalabs.com" <zorik@annapurnalabs.com>, "saeed@annapurnalabs.com" <saeed@annapurnalabs.com>, "alex@annapurnalabs.com" <alex@annapurnalabs.com>, "msw@amazon.com" <msw@amazon.com>, "aligouri@amazon.com" <aligouri@amazon.com>, "antoine.tenart@free-electrons.com" <antoine.tenart@free-electrons.com>, "Rosen, Rami" <rami.rosen@intel.com> |
| X-Original-Date | Mon, 20 Jun 2016 05:20:55 +0000 |
| X-Original-Message-ID | <9B0331B6EBBD0E4684FBFAEDA55776F92CD6858D@HASMSX110.ger.corp.intel.com> |
| X-Original-References | <1465807573-11293-1-git-send-email-netanel@annapurnalabs.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1426213 |
Show key headers only | View raw
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
RE: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA) "Rosen, Rami" <rami.rosen@intel.com> - 2016-06-20 07:40 +0200 Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA) Netanel Belgazal <netanel@annapurnalabs.com> - 2016-06-20 18:20 +0200
csiph-web