master/device.c
changeset 725 8bacb27f3aa2
parent 693 e341f1788608
child 759 fe32d4cdc9c3
equal deleted inserted replaced
724:f188f8a0cafd 725:8bacb27f3aa2
   286     if (unlikely(device->master->debug_level > 1)) {
   286     if (unlikely(device->master->debug_level > 1)) {
   287         EC_DBG("sending frame:\n");
   287         EC_DBG("sending frame:\n");
   288         ec_print_data(skb->data + ETH_HLEN, size);
   288         ec_print_data(skb->data + ETH_HLEN, size);
   289     }
   289     }
   290 
   290 
   291 #ifdef EC_DEBUG_IF
       
   292     ec_debug_send(&device->dbg, skb->data, ETH_HLEN + size);
       
   293 #endif
       
   294 #ifdef EC_DEBUG_RING
       
   295     ec_device_debug_ring_append(
       
   296             device, TX, skb->data + ETH_HLEN, size);
       
   297 #endif
       
   298 
       
   299     // start sending
   291     // start sending
   300     device->dev->hard_start_xmit(skb, device->dev);
   292     if (device->dev->hard_start_xmit(skb, device->dev) == NETDEV_TX_OK) {
   301     device->tx_count++;
   293 		device->tx_count++;
       
   294 #ifdef EC_DEBUG_IF
       
   295 		ec_debug_send(&device->dbg, skb->data, ETH_HLEN + size);
       
   296 #endif
       
   297 #ifdef EC_DEBUG_RING
       
   298 		ec_device_debug_ring_append(
       
   299 				device, TX, skb->data + ETH_HLEN, size);
       
   300 #endif
       
   301 	}
   302 }
   302 }
   303 
   303 
   304 /*****************************************************************************/
   304 /*****************************************************************************/
   305 
   305 
   306 #ifdef EC_DEBUG_RING
   306 #ifdef EC_DEBUG_RING