Code Monkey home page Code Monkey logo

Comments (15)

eigenmatt avatar eigenmatt commented on July 17, 2024 1

Re:

$ ./a.out 541 192.168.1.50 8000
Connected to 192.168.1.50:8000
exasock_tcp_get_device: Operation not supported

You need to run exasock ./a.out 541 192.168.1.50 8000. Linking with -lexasock_ext just provides the extension functions, you still need to use the exasock script to enable the exasock socket acceleration. Otherwise the stubs will be called. This allows you to use the same binary with/without exasock.

It is like as exanic wasn't loaded. When I try to load exasock the modprobe says something like "Unknown symbol exanic_netdev_get_id_and_port".

If I understand you correctly, the exasock module is not working after boot with messages like the above, but after unloading and reloading the drivers it starts to work. I think probably you have an older version of the ExaNIC driver on an initramfs/initrd that is loading at boot. How to fix this depends on your distribution.
On Ubuntu/Debian, try sudo update-initramfs -k all -u
On RHEL/CentOS/Fedora, try sudo dracut -f

I hope this helps. Please note that this is not an actively monitored support channel, if you want more responsive support, it is best to contact support@exablaze or Cisco TAC.

Best regards,
Matt

from exanic-software.

chtrading avatar chtrading commented on July 17, 2024

I am trying for hours to solve this problem.
The only solution that I can do is:
$ sudo rmmod exanic
$ sudo modprobe exanic
$ sudo modprobe exasock

That is: unload exanic, load exanic, and ... load exasock.

I am using the version 2.5.0.

It is like as exanic wasn't loaded. When I try to load exasock the modprobe says something like "Unknown symbol exanic_netdev_get_id_and_port".

The only solution that I've found is this above, unfortunately. Can you help?

from exanic-software.

chtrading avatar chtrading commented on July 17, 2024

eigenmatt,
Your answer was perfectly accurate. Thank you a thousand times.

from exanic-software.

ManishaRiyana avatar ManishaRiyana commented on July 17, 2024

Hey im facing the similar issue, I tried the solution suggested, but that does not seem to have any impact on the issue. If you could please help out?

from exanic-software.

chtrading avatar chtrading commented on July 17, 2024

@ManishaRiyana , "sudo dracut -f" was the command I needed.

from exanic-software.

ManishaRiyana avatar ManishaRiyana commented on July 17, 2024

Im working on Ubuntu.. so I tried sudo update-initramfs -k all -u
That did not seem to solve the issue..
I even tried invoking exasock by calling it before executing the tcp-responder code, even that did not resolve it.. any other ideas on what might be causing this issue

from exanic-software.

chtrading avatar chtrading commented on July 17, 2024

@ManishaRiyana Does your Ubuntu have /dev/exasock presence?

from exanic-software.

ManishaRiyana avatar ManishaRiyana commented on July 17, 2024

Hey,
My dev/ shows exanic0 as well as exasock presence. Even then my exasock is not running simple commands like sudo exasock nc -u -l 1234.. listening to UDP datagrams on port 1234 does not yield any results, whereas my Linux network interface without exasock command receives datagrams correctly

from exanic-software.

dworvos avatar dworvos commented on July 17, 2024

Hope this might help others who stumble here... Had this same issue running on CentOS 7. To resolve I had to make sure to have interface up using exanic-config xyz up (to get /dev/exasock) and then additionally had to cable the exanic to another host. I suspect changing the exanic host to support multi-home would work but using another host was an easier alternative in my situation

from exanic-software.

ManishaRiyana avatar ManishaRiyana commented on July 17, 2024

What do you exactly mean by using another host? Could you please elaborate?

from exanic-software.

dworvos avatar dworvos commented on July 17, 2024

Sure - the TCP responder application needs to connect to a TCP server - I was getting this error trying to direct connect to a different NIC on the same host. I put the TCP server on a different host and direct attach from the exanic card to that different host

from exanic-software.

ManishaRiyana avatar ManishaRiyana commented on July 17, 2024

Right, I've tested this, the issue is slightly different in my case. I have an active intel connection as well on my host. So when I'm trying to run TCP responder example, the connections are being directed through the intel network IP and not exanic IP. That's why its throwing the not supported error. I disabled the intel IP and ran the example again, which is giving me accurate results.

from exanic-software.

ManishaRiyana avatar ManishaRiyana commented on July 17, 2024

And one more thing, executing with exasock helps eliminate the Operation not supported error,
EXASOCK_DEBUG=1 sudo /usr/local/bin/exasock --debug --trace ./tcp_test_03_09.out xx.xx.x.xx 1234

from exanic-software.

dworvos avatar dworvos commented on July 17, 2024

I should mention it may be easier to put the interfaces on different subnets or look into multihoming your linux network setup (different Linuxes require different instructions for that). Linux loves to route traffic on the same subnet through only one interface if the interfaces are on the same subnet (i.e. if you have two different NICs on 192.168.1.x and 192.168.1.y) Something like this may help you in your setup: https://serverfault.com/questions/524054/simple-multihomed-linux-server-issue

from exanic-software.

dbergamin avatar dbergamin commented on July 17, 2024

It is like as exanic wasn't loaded. When I try to load exasock the modprobe says something like "Unknown symbol exanic_netdev_get_id_and_port".

If I understand you correctly, the exasock module is not working after boot with messages like the above, but after unloading and reloading the drivers it starts to work. I think probably you have an older version of the ExaNIC driver on an initramfs/initrd that is loading at boot. How to fix this depends on your distribution. On Ubuntu/Debian, try sudo update-initramfs -k all -u On RHEL/CentOS/Fedora, try sudo dracut -f

I hope this helps. Please note that this is not an actively monitored support channel, if you want more responsive support, it is best to contact support@exablaze or Cisco TAC.

Best regards, Matt

Bit of a bump, but just noting I had the same issue -- was getting
Unknown symbol exanic_netdev_get_id_and_port specifically on boot when trying to load exasock.

dracut -f to rebuild the initramfs got it sorted. Thanks very much for your helpful answer @eigenmatt!

from exanic-software.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.