staticvoidxlgmac_stop(struct xlgmac_pdata *pdata){structxlgmac_hw_ops*hw_ops= &pdata->hw_ops;structnet_device*netdev=pdata->netdev;structxlgmac_channel*channel;structnetdev_queue*txq;unsignedinti;netif_tx_stop_all_queues(netdev); xlgmac_stop_timers(pdata); hw_ops->disable_tx(pdata...
buf[MLX5E_HEALTH_INFO] = mlx5e_test_health_info(mdev);if(etest->flags & ETH_TEST_FL_OFFLINE) {/* save current state */carrier_ok = netif_carrier_ok(dev);/* disable the interface */netif_carrier_off(dev);/* Wait until all tx queues are empty. * there should not be any addit...
tst = ether1_txalloc (dev, TX_SIZE + TBD_SIZE + NOP_SIZE + ETH_FRAME_LEN); priv(dev)->tx_head = caddr;if(tst !=-1)netif_wake_queue(dev); } 开发者ID:OpenHMR,项目名称:Open-HMR600,代码行数:99,代码来源:ether1.c 示例2: rtusb_resume ▲点赞 5▼ staticintrtusb_resume(struct...
if(dev->wait) {if((dev->txq.qlen + dev->rxq.qlen + dev->done.qlen) ==0) { wake_up (dev->wait); }// or are we maybe short a few urbs?}elseif(netif_running(dev->net) && netif_device_present (dev->net) && !timer_pending (&dev->delay) && !test_bit (EVENT_RX_HALT,...
NETIF_F_ALL_FCOE; dev->features |= dev->hw_features | NETIF_F_LLTX; dev->gso_max_size = real_dev->gso_max_size; dev->gso_max_segs = real_dev->gso_max_segs;if(dev->features & NETIF_F_VLAN_FEATURES) netdev_warn(real_dev,"VLAN features are set incorrectly. Q-in-Q configurat...