netmap: Error: Unable to open netmap:eth0: Invalid argument in AWS

Hello, I installed netmap in AWS(Ubuntu 16.04) . When I run $ pke-gen -i eth0 , I got these error message:

065.096883 main [2855] interface is eth0
065.097475 main [2977] using default burst size: 512
065.097579 main [2985] running on 1 cpus (have 1)
065.097753 extract_ip_range [467] range is 10.0.0.1:1234 to 10.0.0.1:1234
065.097828 extract_ip_range [467] range is 10.1.0.1:1234 to 10.1.0.1:1234
065.097897 nm_open [855] overriding ARG1 0
065.097932 nm_open [859] overriding ARG2 0
065.097964 nm_open [863] overriding ARG3 0
065.097996 nm_open [867] overriding RING_CFG
065.098027 nm_open [876] overriding ifname eth0 ringid 0x0 flags 0x8001
065.128843 nm_open [947] NIOCREGIF failed: Invalid argument netmap:eth0
065.128903 main [3078] Unable to open netmap:eth0: Invalid argument
065.128937 main [3145] aborting

Is there any special settings when I use the virtual server in AWS, GCP, etc Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 28

Most upvoted comments

Hi, vmaffione.

Thank you for your explanation.

I use ip link set dev etho mtu 2000 to set MTU.

But when I run $ pkt-gen -i eth0 ,the terminal frozen in these messages.

065.096883 main [2855] interface is eth0
065.097475 main [2977] using default burst size: 512
065.097579 main [2985] running on 1 cpus (have 1)
065.097753 extract_ip_range [467] range is 10.0.0.1:1234 to 10.0.0.1:1234
065.097828 extract_ip_range [467] range is 10.1.0.1:1234 to 10.1.0.1:1234

Several minutes later, I lost the connection with my AWS.

And I got this message in dmesg.

[10799081.538748] 029.700256 [1152] generic_netmap_attach     Emulated adapter for eth0 created (prev was           (null))
[10799081.549296] 029.710805 [ 330] generic_netmap_register   Emulated adapter for eth0 activated
[10799081.556208] 029.717717 [ 375] generic_netmap_register   Emulated adapter: ring 'eth0 RX0' activated
[10799081.563994] 029.725503 [ 382] generic_netmap_register   Emulated adapter: ring 'eth0 TX0' activated
[10799081.571874] 029.733382 [ 834] tc_configure              ifp eth0 qdisc netmapemu parent 4294967295 handle 0
[10799081.928128] 030.089634 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799083.284114] 031.445621 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799085.108127] 033.269633 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799087.023084] 035.184591 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799087.792109] 035.953617 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799088.684139] 036.845645 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799090.464094] 038.625601 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799094.024150] 042.185658 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799095.984132] 044.145638 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799101.152103] 049.313610 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799105.060232] 053.221738 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799108.211003] 056.372511 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799110.496116] 058.657623 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799113.156782] 061.318289 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799115.392110] 063.553618 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10799123.793574] 071.955081 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800009.252766] 957.414274 [ 834] tc_configure              ifp eth0 qdisc pfifo parent 4294967295 handle 0
[10800009.261359] 957.422867 [ 241] generic_netmap_unregister Emulated adapter: ring 'eth0 RX0' deactivated
[10800009.269316] 957.430825 [ 248] generic_netmap_unregister Emulated adapter: ring 'eth0 TX0' deactivated
[10800009.276982] 957.438490 [ 305] generic_netmap_unregister Emulated adapter for eth0 deactivated
[10800009.284341] 957.445850 [1057] generic_netmap_dtor       Emulated netmap adapter for eth0 destroyed
[10800235.894117] 184.055624 [1152] generic_netmap_attach     Emulated adapter for eth0 created (prev was           (null))
[10800235.901845] 184.063354 [ 330] generic_netmap_register   Emulated adapter for eth0 activated
[10800235.908242] 184.069751 [ 375] generic_netmap_register   Emulated adapter: ring 'eth0 RX0' activated
[10800235.914391] 184.075900 [ 382] generic_netmap_register   Emulated adapter: ring 'eth0 TX0' activated
[10800235.920758] 184.082266 [ 834] tc_configure              ifp eth0 qdisc netmapemu parent 4294967295 handle 0
[10800236.348094] 184.509600 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800236.908131] 185.069637 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800238.032115] 186.193621 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800240.123467] 188.284973 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800240.716123] 188.877629 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800241.922168] 190.083675 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800243.061926] 191.223433 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800244.769814] 192.931321 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800246.192952] 194.354460 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800249.074286] 197.235792 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800252.450088] 200.611594 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800253.761879] 201.923386 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800263.394122] 211.555629 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800264.961163] 213.122671 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800271.713314] 219.874821 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800279.973879] 228.135380 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800280.893254] 229.054762 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800281.805930] 229.967438 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800283.633663] 231.795170 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10800287.289104] 235.450611 [3815] netmap_transmit           eth0 drop mbuf that needs checksum offload
[10801170.917902] 119.079410 [ 834] tc_configure              ifp eth0 qdisc pfifo parent 4294967295 handle 0
[10801170.924192] 119.085700 [ 241] generic_netmap_unregister Emulated adapter: ring 'eth0 RX0' deactivated
[10801170.932095] 119.093604 [ 248] generic_netmap_unregister Emulated adapter: ring 'eth0 TX0' deactivated
[10801170.938515] 119.100024 [ 305] generic_netmap_unregister Emulated adapter for eth0 deactivated
[10801170.944311] 119.105820 [1057] generic_netmap_dtor       Emulated netmap adapter for eth0 destroyed