Commit Graph

8 Commits

Author SHA1 Message Date
Joe MacDonald
c62f4c141a Revert "netmap-modules: Modules may not have the same arch as userspace"
This reverts commit b49d08411c.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-03-03 11:23:05 -05:00
Martin Jansa
3c7c7e1358 netmap-modules: fix build with kernel < 3.17
* define NETMAP_LINUX_ALLOC_NETDEV_4ARGS only when MACHINE is using kernel
  3.17 or newer

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-14 11:24:00 +01:00
Jackie Huang
b49d08411c netmap-modules: Modules may not have the same arch as userspace
Kernel modules may not have the same architecture as user space.  So we
tell INSANE_SKIP to skip checking the arch for the modules.  This is
consistent with other kernel modules and the kernel recipe.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-11-30 13:18:40 -05:00
Jackie Huang
636af36e70 netmap-modules: make deterministic builds for drivers
The driver builds are optional, but for deterministic builds,
we should should be able to explicitly enable/disable the
builds for them in a proper place (maybe in BSP).
But we can't use PACKAGECONFIG since there is no option for
each driver, and the options are:
 --no-drivers    do not compile any driver
 --no-drivers=   do not compile the given drivers (comma sep.)
 --drivers=      only compile the given drivers (comma sep.)

So use NETMAP_DRIVERS to list the needed drivers and add proper
configs to EXTRA_OECONF, the default is no drivers, and all
supported drivers are listed in NETMAP_ALL_DRIVERS.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-11-30 13:11:17 -05:00
Martin Jansa
c3d88ca50d netmap-modules: disable building virtio_net drivers
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-11-16 21:50:09 +01:00
Martin Jansa
f6a3cd4dcd netmap: set MACHINE_ARCH, because it depends on MACHINE_ARCH netmap-modules
* it's also using MACHINE specific variables like:
  STAGING_KERNEL_DIR. STAGING_KERNEL_BUILDDIR
* drop suspicious:
  do_fetch[depends] += "netmap-modules:do_fetch"
  fetcher should use .lock files to prevent updating the same repository
  in parallel
* see:
  http://lists.openembedded.org/pipermail/openembedded-devel/2015-September/103271.html
* fixes:
ERROR: netmap different signature for task do_configure.sigdata between qemux86copy and qemux86
basehash changed from 748eae270193023d79f7d6a69aa1b8d2 to 9267873ef5fa4474d5f60fc79044ab64
Variable MACHINE value changed from 'qemux86copy' to 'qemux86'

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-11-16 21:50:08 +01:00
Qi.Chen@windriver.com
9e75e3d136 netmap-modules: fix compilation failure
If CONFIG_IXGBE is enabled in kernel. This package fails to build with
error messages like below.

|  #error "unsupported ixgbe driver version"
|   ^

.......

error: request for member 'count' in something not a structure or union
|   na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
|                                                ^
| cc1: some warnings being treated as errors

Fix this problem by disabling igxbe driver in netmap-modules.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-10-21 15:59:03 -04:00
Armin Kuster
1692d5c302 netmap: add new package
this adds netmap, the fast packet I/O framework
http://info.iet.unipi.it/~luigi/netmap/

    - updated to latest version to get kernel 4.1 support
    - fixed printf type issue
    - Fixed manual config options

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-09-15 10:49:30 -04:00