voidmlx4_en_ex_selftest(struct net_device *dev, u32 *flags, u64 *buf){structmlx4_en_priv*priv=netdev_priv(dev);structmlx4_en_dev*mdev=priv->mdev;inti, carrier_ok;memset(buf,0,sizeof(u64) * MLX4_EN_NUM_SELF_TEST);if(*flags & ETH_TEST_FL_OFFLINE) {/* disable the interfac...
这样,在网卡驱动中读写该位信息就可一判断网络是否链接通路。 网卡驱动程序通过netif_carrier_on/netif_carrier_off/netif_carrier_ok来和内核网络子系统传递信息。 1】netif_carrier_on【作用】告诉内核子系统网络链接完整。 2】netif_carrier_off【作用】告诉内核子系统网络断开。 3】netif_carrier_ok【作用】查询...
netif_start_queue(net_dev); netif_carrier_on(net_dev); netif_wake_queue(net_dev); DBGPRINT(RT_DEBUG_TRACE, ("<=%s()\n", __FUNCTION__));return0; } 开发者ID:rizi-456,项目名称:mtabox,代码行数:53,代码来源:usb_main_dev.c 示例5: prism2_usb_resume ▲点赞 1▼ staticintprism2_...
()\n")); return 0; } // increase MODULE use count RT_MOD_INC_USE_COUNT(); RTMP_CLEAR_FLAG(pAd, fRTMP_ADAPTER_HALT_IN_PROGRESS); RTMP_CLEAR_FLAG(pAd, fRTMP_ADAPTER_RADIO_OFF); netif_start_queue(net_dev); netif_carrier_on(net_dev); netif_wake_queue(net_dev); } } DBGPRINT(...
against carrier readiness in ice_xsk_wakeup() and in ice_xmit_zc(). One could argue that bailing out early in ice_xsk_wakeup() would be sufficient but given the fact that we produce Tx descriptors on behalf of NAPI that is triggered for Rx traffic, the latter is also needed. ...
NO-CARRIER 2018-06-06 17:26 −自己动手写了创建虚拟接口,删除虚拟接口程序,频繁调用创建删除时,有时将接口up起来时会报错: Name not unique on network 利用ip link命令来查看接口(及其对应的索引) 可以查看到与其他接口不同的是有个标志为 NO-CARRIER,不知道是什么意思,查看i... ...
against carrier readiness in ice_xsk_wakeup() and in ice_xmit_zc(). One could argue that bailing out early in ice_xsk_wakeup() would be sufficient but given the fact that we produce Tx descriptors on behalf of NAPI that is triggered for Rx traffic, the latter is also needed. ...
netif_carrier_on(Adapter->dev); netif_start_queue(Adapter->dev); }return0; } 开发者ID:mikuhatsune001,项目名称:linux2.6.32,代码行数:23,代码来源:Bcmnet.c 示例15: sh_eth_adjust_link ▲点赞 1▼ /* PHY state control function */staticvoidsh_eth_adjust_link(struct net_device *ndev){str...
netif_carrier_on(dev->net);if(netif_running(dev->net)) eth_start(dev, GFP_ATOMIC);/* on error, disable any endpoints */}else{ (void) usb_ep_disable(link->out_ep); fail1: (void) usb_ep_disable(link->in_ep); } fail0:/* caller is responsible for cleanup on error */if(resul...
netif_carrier_on(net_dev);netif_wake_queue(net_dev); } RTMP_DRIVER_USB_RESUME(pAd); DBGPRINT(RT_DEBUG_TRACE, ("<=%s()\n", __func__));return0; } 开发者ID:vm3vuy,项目名称:my-local-repository,代码行数:61,代码来源:usb_main_dev.c ...