Hallo,
I reported this problem already on March, but I don't find my mail in the
archives, so I report it again.
I found a bug in e1000_main.c, in function e1000_probe :
adapter->bd_number = cards_found
should be :
adapter->bd_number = cards_found -1
because cards_found was incremented at the start of the function :
if (cards[cards_found++] == 0)
{
return -ENODEV;
}
This has as consequence dat the parameters are initialized incorrect, e.g.
if in rtnet.conf
RT_DRIVER_OPTIONS="cards=0,1,0 and RxIntDelay=0,1,2"
the parameter will be
initialized with 2 instead of 1 for the 2nd card.
Below you find the output from git diff
Frederik ([email protected])
diff --git a/drivers/e1000/e1000_main.c b/drivers/e1000/e1000_main.c
index 27c85c3..12a8ef3 100644
--- a/drivers/e1000/e1000_main.c
+++ b/drivers/e1000/e1000_main.c
@@ -779,7 +779,7 @@ e1000_probe(struct pci_dev *pdev,
netdev->mem_end = mmio_start + mmio_len;
netdev->base_addr = adapter->hw.io_base;
- adapter->bd_number = cards_found;
+ adapter->bd_number = cards_found - 1;
/* setup the private structure */
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
RTnet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rtnet-users