Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 24, 2022 at 1:35 AM Ricardo Martinez
<ricardo.martinez@xxxxxxxxxxxxxxx> wrote:
> From: Haijun Liu <haijun.liu@xxxxxxxxxxxx>
>
> 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



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux