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

netmap support for bnx2 driver #13

Closed
GoogleCodeExporter opened this issue Mar 30, 2015 · 7 comments
Closed

netmap support for bnx2 driver #13

GoogleCodeExporter opened this issue Mar 30, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Added netmap support for bnx2 driver
2. wget and ping is working
3.wn_capture.bin (packet capture is not working)

What is the expected output? What do you see instead?
Packet capture is not working

What version of the product are you using? On what operating system?


Please provide any additional information below.

Is this the expected output. Please let me know
bash-3.2#
bash-3.2# dmesg | grep bnx2
[   10.717032] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.2 (Aug 
21, 2009)
[   10.724731] bnx2 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   10.753216] bnx2 0000:03:00.0: setting latency timer to 64
[   10.753346] bnx2 0000:03:00.0: firmware: using built-in firmware 
bnx2/bnx2-mips-09-5.0.0.j3.fw
[   10.772621] bnx2 0000:03:00.0: firmware: using built-in firmware 
bnx2/bnx2-rv2p-09-5.0.0.j3.fw
[   10.805491] 860.805489 bnx2_netmap_attach [361] 1 queues, tx: 117 rx 117 
slots
[   10.812664] bnx2 0000:03:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[   10.819388] bnx2 0000:03:00.1: setting latency timer to 64
[   10.819514] bnx2 0000:03:00.1: firmware: using built-in firmware 
bnx2/bnx2-mips-09-5.0.0.j3.fw
[   10.828046] bnx2 0000:03:00.1: firmware: using built-in firmware 
bnx2/bnx2-rv2p-09-5.0.0.j3.fw
[   10.860974] 860.860971 bnx2_netmap_attach [361] 1 queues, tx: 117 rx 117 
slots
[  166.402176] bnx2 0000:03:00.0: irq 37 for MSI/MSI-X
[  166.402181] bnx2 0000:03:00.0: irq 38 for MSI/MSI-X
[  166.402184] bnx2 0000:03:00.0: irq 39 for MSI/MSI-X
[  166.402188] bnx2 0000:03:00.0: irq 40 for MSI/MSI-X
[  166.402192] bnx2 0000:03:00.0: irq 41 for MSI/MSI-X
[  166.402195] bnx2 0000:03:00.0: irq 42 for MSI/MSI-X
[  166.402199] bnx2 0000:03:00.0: irq 43 for MSI/MSI-X
[  166.402202] bnx2 0000:03:00.0: irq 44 for MSI/MSI-X
[  166.402205] bnx2 0000:03:00.0: irq 45 for MSI/MSI-X
[  166.443128] bnx2: eth1: using MSIX
[  166.489152] bnx2: eth1 NIC SerDes Link is Up, 1000 Mbps full duplex
bash-3.2#


Original issue reported on code.google.com by prashanthreddy.mtech@gmail.com on 18 Jul 2014 at 11:45

@GoogleCodeExporter
Copy link
Author

Hello!

Could you share patch for bnx2 driver? Somebody could look at it and found 
mistakes. 

Original comment by pavel.odintsov on 26 Mar 2015 at 8:22

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

i implemented netmap support (tx only) long ago, and found that the board is 
uncapable of more than 2.5-3Mpps so there is not much of a point in using 
netmap with it.

Original comment by rizzo.un...@gmail.com on 26 Mar 2015 at 8:34

  • Added labels: ****
  • Removed labels: ****

@vmaffione
Copy link
Collaborator

Dead discussion

@leleobhz
Copy link

Hello @vmaffione

There is more details about you test with bnx2 module? In newer kernel versions, the performance issue still existing?

Thanks!

P.s: I have disposition to test. Here I have a unused machine with following nic:
02:00.0 Ethernet controller: Broadcom Limited NetXtreme II BCM5716 Gigabit Ethernet (rev 20)
02:00.1 Ethernet controller: Broadcom Limited NetXtreme II BCM5716 Gigabit Ethernet (rev 20)

@vmaffione
Copy link
Collaborator

Well, I never tested those actually. There is no native support for bnx2, so you are using the emulated adapter, which comes at reduced performance.
Patches for native bnx2 support are welcome.

@leleobhz
Copy link

@vmaffione but its possible to be done? There something in hardware that can be a no-go for netmap in bnx2? I know there is no native driver but afaik, this report is about a patch to support nativelly the bnx2 module, right?

Thanks!

@vmaffione
Copy link
Collaborator

Yes, it can be done, for instance following the recommendations in #264 , and the NIC documentation would probably help.
I read in this thread that someone tried to add support for bnx2, but we have no more information (is the code available ? , what's the status ?, etc.)

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

3 participants