22#ifndef __RTMAC_VNIC_H_
23#define __RTMAC_VNIC_H_
27#include <linux/init.h>
28#include <linux/netdevice.h>
30#include <rtmac/rtmac_disc.h>
32#define DEFAULT_VNIC_RTSKBS 32
34int rtmac_vnic_rx(
struct rtskb *skb, u16 type);
36int rtmac_vnic_xmit(
struct sk_buff *skb,
struct net_device *dev);
38void rtmac_vnic_set_max_mtu(
struct rtnet_device *rtdev,
unsigned int max_mtu);
40int rtmac_vnic_add(
struct rtnet_device *rtdev, vnic_xmit_handler vnic_xmit);
41int rtmac_vnic_unregister(
struct rtnet_device *rtdev);
43static inline void rtmac_vnic_cleanup(
struct rtnet_device *rtdev)
45 struct rtmac_priv *mac_priv = rtdev->mac_priv;
47 rtskb_pool_release(&mac_priv->vnic_skb_pool);
50#ifdef CONFIG_XENO_OPT_VFILE
54int __init rtmac_vnic_module_init(
void);
55void rtmac_vnic_module_cleanup(
void);
Regular vfile iterator .
Definition vfile.h:270