NetFPGA / NetFPGA-1G-CML-live

NetFPGA 1G CML Live development repository
10 stars 2 forks source link

Fixing problem in the configuration of network interfaces for release of Fedora 21 (file "nf10iface.c"). #2

Open rjacauna opened 9 years ago

rjacauna commented 9 years ago

If you are having difficulty installing the NetFPGA board as a system device, simply add the parameter as follows:

// Set up the network device ...
for (i = 0; i <4; i ++) {
    netdev = card-> ndev [i] = alloc_netdev (sizeof (struct nf10_ndev_priv)
                                          devname, nf10iface_init);
    if (NULL == netdev) {
        printk (KERN_ERR "nf10:. Could not allocate ethernet device \ n");
        ret = -ENOMEM;
        goto err_out_free_dev;
    }

To

// Set up the network device ...
for (i = 0; i <4; i ++) {
    netdev = card-> ndev [i] = alloc_netdev (sizeof (struct nf10_ndev_priv)
                                          devname, NET_NAME_UNKNOWN, nf10iface_init);
    if (NULL == netdev) {
        printk (KERN_ERR "nf10:. Could not allocate ethernet device \ n");
        ret = -ENOMEM;
        goto err_out_free_dev;
    }

This is probably because the kernel 04 arguments expected, but only 03 are provided. Thus, the error does not happen, allowing the following steps are performed "surprises". Good job!