What is the equivalent of PACKET_MMAP for kernel 4.x - linux

Guys,
We upgraded from 2.6 to 4.9 recently, lots of new stuff to catch up with.
Anyway, we found the libpcap is obviously slower than previous version running on 2.6, first thing I am thinking about is enabling memory map at kernel building stage (PACKET_MMAP=true). But seems PACKET_MMAP is not supported at 4.x anymore, I am wondering any guru can help me with following questions:
1) how does 4.x enable the memory map?
2) any suggestions to tune up speed of libpcap running on 4.x kernel?
Many appreciation,
Tao

But seems PACKET_MMAP is not supported at 4.x anymore
No, it's still supported.
how does 4.x enable the memory map?
By being 4.x. :-) It's always enabled in 3.0 and later kernels; there's no configuration option required (or available).

Related

Infiniband support on FreeBSD 11.0

I am trying to bring up a FreeBSD 11.0 server having Infiniband support. From what I know FreeBSD 11.0 already have this support. But I am not seeing any ibv related commands that I can use to run the iWARP traffic.
Can anyone suggest what should I do?
Judging from FreeBSD wiki page, not all infiniband-related utilities are ported yet. These are ported ones.

CAN j1939 support in Linux Kernel 4.x

Any one have ported CAN J1939 stack on the kernel 4.x series?
We had ported it into 3.10 kernel based on the link "http://elinux.org/J1939".
Now I want to port it into the kernel version 4.1.15. I understand there was some changes happens in the 4.x kernel network layer and my current patches shows some errors?
Have anyone already ported this into 4.x kernel? or from where can I get the patches for new Kernel ?
Please advice me?
Thanks,
Shabeer
I saw it done in Yocto for some kernels. Though, if you google for it you may find the following link: http://elinux.org/J1939. I checked repositories, it contains a branch for v4.1 version.

Is there some security software using Linux Security Module?

LSM(Linux Security Module) was used in kernel 2.6. Now kernel comes to 4.x and I can't figure out if there are still some using LSM? Does the latest kernel give up the support for LSM?
According to wikipedia the kernel still uses LSM. Modules like AppArmor are implemented on top of LSM. So yes, it is still used and modules that take advantage of it do exist.

Programming OpenGL 3+ in virtualized linux with software rendering

Using VMware 10 and ubuntu 13.10 as the guest OS.
Installing the guest additions can provide hardware rendering for OpenGL 2.1
For academic purposes, there is a need to develop and run OpenGL 3+ code, preferably in the virtual machine.
I assume that it is not possible to use the host GPU, so I am trying to force software rendering, using an OpenGL 3+ renderer.
Mesa3D + llvmpipe seems promising, but I am unable to find information on whether the software renderer supports OpenGL 3+.
Is there a way to develop OpenGL 3+ under vmware?
EDIT: (For someone who replied and then deleted their post :p)
Yes, I am also seeing OpenGL 2.1 using glxinfo. I removed hardware acceleration in my VM, and am only interested in software rasterization, even if it is really slow. The question is, is there a version of llvmpipe that implements a software rasterizer for OpenGL versions higher than 2.1? I know that mesa3d supports it, albeit only for hardware.
The mesa software renderer (both the "old" pre-gallium swrast and the "new" gallium softpipe/llvmpipe), do support most of GL3.2. The only major thing missing is support for multisampling, hence they are not advertising full 3.0 support.
Update 2017
Current versions of mesa's various software rasterizers now do claim to support up to GL 3.3 in a core profile. (The progress can be tracked on https://mesamatrix.net/). However, there is a caveat, as documented in mesa's feature.txt:
freedreno, llvmpipe, softpipe, and swr have fake Multisample anti-aliasing support
which means they still do not fullfill the requirements of the GL 3.0 spec. However, in most cases, this will not matter in practice. But one should still be aware of that limitiation.
In case anyone is still interested, VMWare Workstation (both Workstation Pro and Workstation Player) have added OpenGL 3.3 support in version 12.
However, at the time of writing, the Linux guest drivers side of the equation has not been available, and is planned for Linux 4.3.
So: Use VMWare Workstation Player (or Pro, if you have it) version 12 or up, and Linux 4.3 or up.
Update: using VirtualBox without any kind of acceleration and Mesa LLVMpipe, I also get OpenGL 3.3 support (Mesa version is 17.1.1)

AODV implementation for Kernel 3.8 or above

I am working on a research project where I will be creating a proactive protocol similar to AODV. Creating the protocol from the scratch will be a tedious and time consuming task and it will be time saving If I implement the protocol from already working AODV.
I can find AODV for old linux kernel such as 2.6.x such as famous AODV-uu from http://sourceforge.net/projects/aodvuu/. They are not compiling properly against the newer version for kernel version 3.8 and above. Does anyone have know AODV for latest kernel or does anyone AODV-uu for latest kernel version. Any help is very much appreciated.
AODV -UU is the only source. Are you going to implement your protocol in real time or in stimulation?
There is no development in Aodv kernel version. If u wish make use of aodv existing code and compile it for newer kernel version.

Resources