Netmap in FreeBSD 10

Olivier Cochard-Labbé olivier at cochard.me
Thu Jan 23 22:30:00 UTC 2014


On Wed, Jan 22, 2014 at 7:45 PM, Luigi Rizzo <rizzo at iet.unipi.it> wrote:

>
> I also suggest to update the netmap code to the one in head,
> which has more features and bugfixes.
>
>
I've tried to copy the netmap code from head to 10.0: it's a little bit
more complex than a simple copy :-)

The linker is not happy because some declarations are just declared and not
included in some header file, here is a limited output:

/src/sys/dev/e1000/if_em.c:(.text+0x51ee): undefined reference to
`netmap_buffer_lut'
/src/sys/dev/e1000/if_em.c:(.text+0x5204): undefined reference to
`netmap_buffer_lut'
if_em.o: In function `em_netmap_txsync':
/src/sys/dev/e1000/if_em.c:(.text+0xa170): undefined reference to
`netmap_buffer_lut'
if_em.o:/src/sys/dev/e1000/if_em.c:(.text+0xa184): more undefined
references to `netmap_buffer_lut' follow
netmap.o: In function `netmap_get_memory':
/src/sys/dev/netmap/netmap.c:(.text+0xab8): undefined reference to `nm_mem'
/src/sys/dev/netmap/netmap.c:(.text+0xaea): undefined reference to
`netmap_mem_finalize'
netmap.o: In function `netmap_dtor_locked':
/src/sys/dev/netmap/netmap.c:(.text+0xb77): undefined reference to
`netmap_mem_deref'
netmap.o: In function `netmap_do_unregif':
/src/sys/dev/netmap/netmap.c:(.text+0xc74): undefined reference to
`netmap_mem_rings_delete'
/src/sys/dev/netmap/netmap.c:(.text+0xc88): undefined reference to
`netmap_mem_if_delete'
netmap.o: In function `netmap_txsync_to_host':
/src/sys/dev/netmap/netmap.c:(.text+0xeb1): undefined reference to
`mbq_init'
netmap.o: In function `netmap_grab_packets':
/src/sys/dev/netmap/netmap.c:(.text+0x1800): undefined reference to
`mbq_enqueue'
netmap.o: In function `netmap_send_up':
/src/sys/dev/netmap/netmap.c:(.text+0x1849): undefined reference to
`mbq_dequeue'
/src/sys/dev/netmap/netmap.c:(.text+0x18ce): undefined reference to
`mbq_dequeue'
/src/sys/dev/netmap/netmap.c:(.text+0x18de): undefined reference to
`mbq_destroy'
(etc...)


More information about the freebsd-net mailing list