[Oisf-users] Netmap pipe configuration

James Dickenson jdickenson at gmail.com
Tue Jan 31 23:52:54 UTC 2017


Hey All,

I'm trying to test a Suricata configuration using Netmap and the bundled
Netmap tool lb to load balance for the Suricata worker threads.  However
I've run into some trouble trying to figure out how to get Suricata to bind
to the netmap pipes.

Anyone have any experience with using Netmap with Suricata? Or for that
matter used the lb to do load balancing?

Thanks in advance for the assistance!

-James

I can do the following:

# lb -i ens1f1 -p foo:4

and can bind to any of the four pipes using the netmap tool pkt-gen:

# pkt-gen -i foo}0 -f rx

But if I try on Suricata:

# /usr/bin/suricata  -c /etc/suricata/suricata.yaml --netmap=foo}0
--runmode=workers

<Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get MTU
via ioctl for 'foo}0': No such device (19)
<Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
number of RSS queue ioctl for 'foo}0': No such device (19)
<Error> - [ERRCODE: SC_ERR_NETMAP_CREATE(263)] - Couldn't query netmap for
foo}0, error No such device or address
<Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
feature via ioctl for 'foo}0': No such device (19)
 <Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
feature via ioctl for 'foo}0': No such device (19)
 <Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
feature via ioctl for 'foo}0': No such device (19)
 <Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
feature via ioctl for 'foo}0': No such device (19)
 <Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
feature via ioctl for 'foo}0': No such device (19)
 <Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
feature via ioctl for 'foo}0': No such device (19)
 <Warning> - [ERRCODE: SC_ERR_SYSCALL(50)] - Failure when trying to get
feature via ioctl for 'foo}0': No such device (19)
 <Error> - [ERRCODE: SC_ERR_SYSCALL(50)] - Unable to get flags for iface
"foo}0": No such device
<Error> - [ERRCODE: SC_ERR_NETMAP_CREATE(263)] - Can not access to
interface 'foo}0'
 <Error> - [ERRCODE: SC_ERR_THREAD_INIT(49)] - thread "W#01-foo}0" closed
on initialization.
 <Error> - [ERRCODE: SC_ERR_INITIALIZATION(45)] - Engine initialization
failed, aborting...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-users/attachments/20170131/2f2c65a2/attachment.html>


More information about the Oisf-users mailing list