Add vpp native linux kernel AF_PACKET interface support 86/486/5
authorDamjan Marion <[email protected]>
Mon, 29 Feb 2016 12:09:30 +0000 (13:09 +0100)
committerDamjan Marion <[email protected]>
Wed, 16 Mar 2016 19:27:52 +0000 (20:27 +0100)
commit83243a0ff59f90eeed9da2da85b5bb5b3e0d5881
treea8f2cf13bfd128a941d0dbadbb802c8eecc66aec
parentb8abf877ba27098ca706281182cac67e15d7dd1e
Add vpp native linux kernel AF_PACKET interface support

This is 1st drop of VPP native driver for linux AF_PACKET.

New CLI:

  create host-interface name <host-if-name>  [hw-addr <mac-address>]

References:
 - Documentation/networking/packet_mmap.txt in the Linux kernel tree
 - man 7 packet

Known issues:
 - attaching to linux bridge doesn't work
 - it is not expected to work in multicore setup

Change-Id: I1cb1c3d305f349759e90e76e25696718b73bd73d
Signed-off-by: Damjan Marion <[email protected]>
vlib/vlib/unix/input.c
vlib/vlib/unix/unix.h
vnet/Makefile.am
vnet/vnet/api_errno.h
vnet/vnet/devices/af_packet/af_packet.c [new file with mode: 0644]
vnet/vnet/devices/af_packet/af_packet.h [new file with mode: 0644]
vnet/vnet/devices/af_packet/cli.c [new file with mode: 0644]
vnet/vnet/devices/af_packet/device.c [new file with mode: 0644]
vnet/vnet/devices/af_packet/node.c [new file with mode: 0644]