Thread (45 messages) 45 messages, 3 authors, 2022-04-05

Re: [PATCH net-next v5 09/13] net: wwan: t7xx: Add WWAN network interface

From: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Date: 2022-03-07 02:59:19
Also in: linux-wireless

On Thu, Feb 24, 2022 at 1:35 AM Ricardo Martinez
[off-list ref] wrote:
From: Haijun Liu <haijun.liu@mediatek.com>

Creates the Cross Core Modem Network Interface (CCMNI) which implements
the wwan_ops for registration with the WWAN framework, CCMNI also
implements the net_device_ops functions used by the network device.
Network device operations include open, close, start transmission, TX
timeout, change MTU, and select queue.
[skipped]
+static u16 t7xx_ccmni_select_queue(struct net_device *dev, struct sk_buff *skb,
+                                  struct net_device *sb_dev)
+{
+       return DPMAIF_TX_DEFAULT_QUEUE;
+}
[skipped]
+static const struct net_device_ops ccmni_netdev_ops = {
+       .ndo_open         = t7xx_ccmni_open,
+       .ndo_stop         = t7xx_ccmni_close,
+       .ndo_start_xmit   = t7xx_ccmni_start_xmit,
+       .ndo_tx_timeout   = t7xx_ccmni_tx_timeout,
+       .ndo_select_queue = t7xx_ccmni_select_queue,
Since the driver works in the single queue mode, this callback is unneeded.
+};
--
Sergey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help