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 34 int rtmac_vnic_rx(
struct rtskb *skb, u16 type);
36 int rtmac_vnic_xmit(
struct sk_buff *skb,
struct net_device *dev);
38 void rtmac_vnic_set_max_mtu(
struct rtnet_device *rtdev,
unsigned int max_mtu);
40 int rtmac_vnic_add(
struct rtnet_device *rtdev, vnic_xmit_handler vnic_xmit);
41 int rtmac_vnic_unregister(
struct rtnet_device *rtdev);
43 static 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 54 int __init rtmac_vnic_module_init(
void);
55 void rtmac_vnic_module_cleanup(
void);
Regular vfile iterator.
Definition: vfile.h:269