devices/8139too.c
changeset 73 9f4ea66d89a3
parent 70 6693d7e25d5e
child 79 319a97c1f0f9
equal deleted inserted replaced
72:7c986b717411 73:9f4ea66d89a3
  2266                                 tp->stats.rx_dropped++;
  2266                                 tp->stats.rx_dropped++;
  2267                         }
  2267                         }
  2268                 }
  2268                 }
  2269                 else
  2269                 else
  2270                 {
  2270                 {
  2271                   if (EtherCAT_dev_receive(rtl_ec_dev,
  2271                     EtherCAT_dev_receive(rtl_ec_dev,
  2272                                            &rx_ring[ring_offset + 4] + ETH_HLEN,
  2272                                          &rx_ring[ring_offset + 4] + ETH_HLEN,
  2273                                            pkt_size - ETH_HLEN) == 0)
  2273                                          pkt_size - ETH_HLEN);
  2274                   {
       
  2275                     dev->last_rx = jiffies;
  2274                     dev->last_rx = jiffies;
  2276                     tp->stats.rx_bytes += pkt_size;
  2275                     tp->stats.rx_bytes += pkt_size;
  2277                     tp->stats.rx_packets++;
  2276                     tp->stats.rx_packets++;
  2278                   }
       
  2279                 }
  2277                 }
  2280 
  2278 
  2281                 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
  2279                 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
  2282 
  2280 
  2283 		received++;
  2281 		received++;
  2464             }
  2462             }
  2465           }
  2463           }
  2466           else
  2464           else
  2467           {
  2465           {
  2468             /* Beim EtherCAT-Device einfach alle Frames empfangen */
  2466             /* Beim EtherCAT-Device einfach alle Frames empfangen */
  2469             rtl8139_rx(dev, tp, 100); // FIXME Das ist echt dirty...
  2467             rtl8139_rx(dev, tp, 100); // FIXME
  2470           }
  2468           }
  2471 	}
  2469 	}
  2472 
  2470 
  2473         /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
  2471         /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
  2474 
  2472