[SOLVED] PF_RING: packet of length 1518 is too long to send?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
PF_RING: packet of length 1518 is too long to send?
As a first step to a more complicated application, I am trying to create a bridge with PF_RING Zero Copy. I am running 64-bit Ubuntu 12.04 on a Core i7, and have an Intel X540 dual-port 10Gbps card which uses the ixgbe driver. I run the code included below to forward from one port to the other. When I run it using the default driver, it works, but I don't get the benefit of a PF_RING-aware driver. When I run with the ixgbe driver built in the PF_RING_aware directory of the PF_RING source, it runs until it tries to send a packet of length 1518, at which point pfring_zc_send_pkt() fails with an EMSGSIZE error ("Message too long"). This despite the fact that the packet buffer size is set to 1600 (MTU+100).
It seems that the source for pfring_zc_send_pkt() is hidden; it is only available in compiled form, so I cannot dig further into how exactly it is determined that the message is "too long."
Does anyone have any suggestions on how to proceed? Any configurations to check?
Sorry for the short answer. Actually, EMSGSIZE is not a popular error in the kernel. ixgbe generates it only when doing certain ethtool operations, and there are a few places in ipv6 raw, but none jumps out at me. My guess would be pf_ring itself.
Here's an update. I recompiled the ixgbe driver provided with PF_RING, but took out the -DHAVE_PF_RING preprocessor flag in the Makefile. It worked -- no long messages. So the problem is definitely contained in the PF_RING additions. I scanned through the source but didn't find anything obvious. I think I will submit a bug report to ntop.org.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.