Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 22:28:03 +0200
From:      Stefano Duo <duostefano93@gmail.com>
To:        soc-status@freebsd.org
Subject:   Extension to the netmap framework - Week 2
Message-ID:  <CALkzoBuuxZ7LZJeteV3q5L1GDfE5j4xLYPSweg8w-7Chk%2BA09Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALkzoBuuxZ7LZJeteV3q5L1GDfE5j4xLYPSweg8w-7Chk%2BA09Q>