Extension to the netmap framework - Week 2
Stefano Duo
duostefano93 at gmail.com
Mon May 28 20:28:05 UTC 2018
Hi,
during the second week i extended the vale_vlan kernel module.
VLAN configuration can now be created (modified and read) through system
calls on the device "/dev/vale_vlan".
First a VLAN configuration must be selected though an ioctl(), which
expects a "struct vlanreq_header".
Then commands are issued to the configuration through a write(), which
expects an array "struct vlan_conf_entry". An array of commands is
considered atomic, therefore if one of them fails, the status of the
configuration is rolled back.
Finally the current configuration can be read though a read(), passing an
array of "struct port".
The data structures used by the interface between user and kernel space are
defined in "net/vale_vlan_user.h".
Project wiki:
https://wiki.freebsd.org/SummerOfCode2018Projects/ExtensionsToNetmap
SVN repository: https://svnweb.freebsd.org/socsvn/soc2018/sduo/
Stefano.
More information about the soc-status
mailing list