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 35 int rtmac_vnic_rx(
struct rtskb *skb, u16 type);
37 int rtmac_vnic_xmit(
struct sk_buff *skb,
struct net_device *dev);
39 void rtmac_vnic_set_max_mtu(
struct rtnet_device *rtdev,
unsigned int max_mtu);
41 int rtmac_vnic_add(
struct rtnet_device *rtdev, vnic_xmit_handler vnic_xmit);
42 int rtmac_vnic_unregister(
struct rtnet_device *rtdev);
44 static inline void rtmac_vnic_cleanup(
struct rtnet_device *rtdev)
46 struct rtmac_priv *mac_priv = rtdev->mac_priv;
48 rtskb_pool_release(&mac_priv->vnic_skb_pool);
51 #ifdef CONFIG_XENO_OPT_VFILE 55 int __init rtmac_vnic_module_init(
void);
56 void rtmac_vnic_module_cleanup(
void);
Regular vfile iterator.
Definition: vfile.h:269