K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-12-31T10:08:17.307914Z K 7 svn:log V 637 Convert vtnet(4) to new interface API. This is a more complex example than loop(4) and can be used as reference when converting other drivers. - Don't include if_var.h. - Declare static struct ifdriver, and if_attach_args on stack of vtnet_setup_interface(). - Use methods to access properties of interface. - Use if_foreach_addr() and if_foreach_maddr() to iterate over interface addresses. - Use buf_ring(9) directly instead of drbr(9). [1] [1] The drbr(9) goes away very soon as well as interface output queues. ALTQ will be implemented as interceptor of interface if_ops. Sponsored by: Netflix Sponsored by: Nginx, Inc. END