sumithdev09 / netmap

Automatically exported from code.google.com/p/netmap
0 stars 0 forks source link

A bug about we use flag NR_REG_ONE_NIC in nm_open() #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In file: netmap_user.h:
line: 511.

508        } else if (nr_flags == NR_REG_ONE_NIC) {
509     /* XXX check validity */
510     d->first_tx_ring = d->last_tx_ring =
511     d->first_rx_ring = d->last_rx_ring = nr_ringid;
512 } else { /* pipes */

If we use NETMAP_NO_TX_POLL or/and NETMAP_DO_RX_POLL on nr_ringid, there is an 
error.So, the ring way is:

508        } else if (nr_flags == NR_REG_ONE_NIC) {
509     /* XXX check validity */
510     d->first_tx_ring = d->last_tx_ring =
511     d->first_rx_ring = d->last_rx_ring = (nr_ringid & NETMAP_RING_MASK);
512 } else { /* pipes */

PS: I have sent an email to  rizzo##iet.unipi.it, but there is no any response 
to me. Please reply an email to me(dubingo201##hotmail.com). Thank you.

Original issue reported on code.google.com by dubingo...@gmail.com on 30 Apr 2014 at 2:32

GoogleCodeExporter commented 9 years ago
Thank you for your suggestion, we fixed this bug in the issue 11. 
(https://code.google.com/p/netmap/issues/detail?id=11&can=1)

Cheers,
Stefano

Original comment by stefanog...@gmail.com on 8 Jul 2014 at 2:20