Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue May 23, 2015 · 1 comment
Closed

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

GoogleCodeExporter opened this issue May 23, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant