*/voidmwifiex_stop_net_dev_queue(struct net_device *netdev, struct mwifiex_adapter *adapter){unsignedlongdev_queue_flags; spin_lock_irqsave(&adapter->queue_lock, dev_queue_flags);netif_tx_stop_all_queues(netdev); spin_unlock_irqrestore(&adapter->queue_lock, dev_queue_flags); } 开发者...
1】netif_start_queue 启动接口传输队列 2】netif_wake_queue 通知网络系统可以再次开始传输数据包;并启动接口传输队列。 3】netif_stop_queue 标记设备不能传输其他数据包。 4】netif_queue_stopped 5】netif_tx_disable 和第三个功能接口类似,但它还确保在返回时,在其他cpu上没有运行hard_start_xmit函数。可以用...
de600_put_byte(0);if(free_tx_pages-- == TX_PAGES) {/* No transmission going on */dev->trans_start = jiffies;netif_start_queue(dev);/* allow more packets into adapter *//* Send page and generate a faked interrupt */de600_setup_address(transmit_from, TX_ADDR); de600_put_command...
int dev_weight_rx_bias __read_mostly = 1; /* bias for backlog weight */ int dev_weight_tx_bias __read_mostly = 1; /* bias for output_queue quota */ int dev_rx_weight __read_mostly = 64; int dev_tx_weight __read_mostly = 64; /* Called with irq disabled */ static inline...
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE |IFF_NO_QUEUE; netif_keep_dst(dev); dev->hw_features =NETIF_F_GSO_SOFTWARE; dev->features = NETIF_F_SG |NETIF_F_FRAGLIST|NETIF_F_GSO_SOFTWARE|NETIF_F_HW_CSUM|NETIF_F_RXCSUM|NETIF_F_SCTP_CRC|NETIF_F_HIGHDMA|NETIF_F_LLTX|NETIF_F_NETNS...
p->irq = res_irq->start; spin_lock_init(&p->lock); skb_queue_head_init(&p->tx_list); skb_queue_head_init(&p->rx_list); tasklet_init(&p->tx_clean_tasklet, octeon_mgmt_clean_tx_tasklet, (unsignedlong)p); netdev->priv_flags |= IFF_UNICAST_FLT; ...
&priv->tx_config[requested_engine].cfg)) {/* board has reset, wait for reset of netdev */netif_tx_stop_queue(txq->txq);netif_carrier_off(netdev);if(netif_msg_tx_err(priv)) netdev_err(netdev,"txq[%d] tx[%d]: cannot configure channel\n", ...
netdev_tx_reset_queue(ring->tx_queue);if(cnt) en_dbg(DRV, priv,"Freed %d uncompleted tx descriptors\n", cnt);returncnt;#endif} 开发者ID:8l,项目名称:akaros,代码行数:34,代码来源:en_tx.c 示例2: cpmac_end_xmit ▲点赞 6▼
dhcp_start( &xNetIf ); }#else{netif_set_up( &xNetIf ); }#endif/* Install the server side include handler. */http_set_ssi_handler( uslwIPAppsSSIHandler, pccSSITags,sizeof( pccSSITags ) /sizeof(char* ) );/* Create the mutex used to ensure mutual exclusive access to the Tx ...
netif_stop_queue(netdev);if(netif_running(netdev)) {if(dev != netdev) bus_bitmask_start |= (1<< j); priv->tx.pending =0; priv->tx.echo_put =0; priv->tx.echo_get =0;/* * this bus' may just have called open_candev() ...