]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
add some definition and driver changes in preparation for
authorLuigi Rizzo <luigi@FreeBSD.org>
Thu, 17 Jan 2013 22:14:58 +0000 (22:14 +0000)
committerLuigi Rizzo <luigi@FreeBSD.org>
Thu, 17 Jan 2013 22:14:58 +0000 (22:14 +0000)
commit1dce924d2528107dd2c49bf68434bca3135b2fbf
treee7c9983311fd80a432d1eb47b75fb539c22fbc9c
parentf876ffeae3dfa42438cd53f0abf84359c07bfd95
add some definition and driver changes in preparation for
two upcoming features:

semi-transparent mode:
    when a device is opened in this mode, the
    user program will be able to mark slots that must be forwarded
    to the "other" side (i.e. from NIC to host stack, or viceversa),
    and the forwarding will occur automatically at the next netmap syscall.
    This saves the need to open another file descriptor and do
    the forwarding manually.

direct-forwarding mode:
    when operating with a VALE port, the user can specify in the slot
    the actual destination port, overriding the forwarding decision
    made by a lookup of the destination MAC. This can be useful to
    implement packet dispatchers.

No API changes will be introduced.
No new functionality in this patch yet.
sys/dev/netmap/if_em_netmap.h
sys/dev/netmap/if_igb_netmap.h
sys/dev/netmap/if_lem_netmap.h
sys/dev/netmap/if_re_netmap.h
sys/dev/netmap/ixgbe_netmap.h
sys/dev/netmap/netmap_kern.h