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

Failure accessing netmap: Invalid argument #942

Open
KatherineJXY opened this issue Dec 11, 2023 · 1 comment
Open

Failure accessing netmap: Invalid argument #942

KatherineJXY opened this issue Dec 11, 2023 · 1 comment

Comments

@KatherineJXY
Copy link

KatherineJXY commented Dec 11, 2023

$ sudo pkt-gen -i ens1f1 -f tx -b1 -l 1400
951.291185 main [3036] interface is ens1f1
951.291276 main [3167] running on 1 cpus (have 20)
951.291706 extract_ip_range [477] range is 10.0.0.1:1234 to 10.0.0.1:1234
951.291718 extract_ip_range [477] range is 10.1.0.1:1234 to 10.1.0.1:1234
ens1f1: Invalid argument
951.293194 main [3335] aborting

I got the "invalid argument" error when I was trying to generate packets using pkt-gen.

$ ethtool -i ens1f1
driver: mlx5_core
version: 5.4-3.6.8
firmware-version: 16.31.2006 (MT_0000000008)
expansion-rom-version:
bus-info: 0000:65:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes

I compile netmap with driver mlx5
$./configure --drivers=mlx5
c17939d9accf554ca83ffe18d9c1dac

And these are the details of the netmap folder
1702300486393

I got the same error when I used netmap with tcpreplay

$ sudo tcpreplay --netmap -M 3000 -i ens1f1 /home/r6/scripts-bk/trace/univ1_trace/*
Switching network driver for ens1f1 to netmap bypass mode...
Fatal Error: failed to open device ens1f1: Failure accessing netmap.
        Request for netmap version 14 failed.
        Compiled netmap driver is version 14.
        Error=Invalid argument

Is it a problem with the NIC (for example, not support)?

@giuseppelettieri
Copy link
Collaborator

Is there any relevant message in the kernel log? (sudo dmesg)

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

No branches or pull requests

2 participants