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]
quoted hunk ↗ jump to hunk
+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]
quoted hunk ↗ jump to hunk
+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