Comments (15)
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.
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.
eigenmatt,
Your answer was perfectly accurate. Thank you a thousand times.
from exanic-software.
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.
@ManishaRiyana , "sudo dracut -f" was the command I needed.
from exanic-software.
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.
@ManishaRiyana Does your Ubuntu have /dev/exasock presence?
from exanic-software.
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.
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.
What do you exactly mean by using another host? Could you please elaborate?
from exanic-software.
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.
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.
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.
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.
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, trysudo 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)
- Improvements to miscdevice handling
- exanic-dkms rpm: fatal error in postinstall should be avoided
- Exanic driver doesn't build on recent RHEL / CentOS / Rocky 8 kernels
- Exanic driver doesn't build on CentOS stream 9 / Rocky Linux 9
- Will any ongoing support be expected for this repo?
- why do auther add this code ``#include <linux/ethtool.h>`` in exanic-phyops.h on version 2.7.2.
- There is no way to setup tcp connection with nonblock flag HOT 1
- version mismatch in 2.7.3 release link
- exanic_find_port_by_interface_name fails for X100 on RHEL8/9 HOT 4
- Unable to debug exasock application using gdb. HOT 5
- Kernel module fails to build on Linux 6.1 LTS HOT 7
- Public yum repositories return 200 OK for nonexistent content instead of 404
- exasock doesn't support socket MSG_WAITALL flag HOT 2
- EL9 (Rocky9) EADDRNOTAVAIL (Cannot assign requested address) on connect() HOT 1
- exanic-clock-sync have 300ns bias HOT 8
- Extra acknowledgement being sent while using exanic Kernel module for TCP session, with wrong sequence number
- Sockets linger in FIN-WAIT-2 indefinitely
- Kernel module fails to run on 6.2
- RHEL9 support request for libexanic
- exablaze.com and repositories no longer available HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exanic-software.