Thread (9 messages) 9 messages, 2 authors, 2026-09-09

Re: [PATCH 1/2] net: usb: cdc_ether: add NCSI passthrough support

flat view

From: Potin Lai <hidden>
Date: 2026-09-08 12:49:00
Also in: linux-usb, lkml

On Tue, Sep 8, 2026 at 2:17 AM Andrew Lunn [off-list ref] wrote:
quoted
+/* NCSI operates at 100 Mbps */
+#define NCSI_SPEED_BPS               (100 * 1000000)
Why 100Mbps? RGMII is often used, running at 1G.
Since the original NC-SI specification was designed based on the
RMII protocol, simply set the speed to 100 Mbps as the default
for this virtual USB link.
quoted
+struct cdc_ncsi_priv {
+     struct ncsi_dev *ndev;
+     struct net_device_ops netdev_ops;
+     const struct net_device_ops *orig_netdev_ops;
+};
+
+static int cdc_ncsi_open(struct net_device *net);
+static int cdc_ncsi_stop(struct net_device *net);
No forward declarations. Move the code around so they are not needed.
Thanks for the suggestion, I will move the code to remove forward declarations.
   Andrew
Best regards,
Potin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help