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...
netif_carrier_ok(dev)) {intsome_queue_timedout =0;unsignedinti;unsignedlongtrans_start;for(i =0; i < dev->num_tx_queues; i++) {structnetdev_queue*txq;txq = netdev_get_tx_queue(dev, i);/* * old device drivers set dev->trans_start */trans_start = txq->trans_start ? : d...
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...
msg.eth_id = port->id;if(npe_send_recv_message(port->npe, &msg,"ETH_SET_FIREWALL_MODE"))return-EIO;if((err = request_queues(port)) !=0)returnerr;if((err = init_queues(port)) !=0) { destroy_queues(port); release_queues(port);returnerr; } port->speed =0;/* force "link ...
netif_carrier_ok(dev)) {intsome_queue_timedout =0;unsignedinti;unsignedlongtrans_start;for(i =0; i < dev->num_tx_queues; i++) {structnetdev_queue*txq;txq = netdev_get_tx_queue(dev, i);/* * old device drivers set dev->trans_start ...
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 configurations may not work ...