X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux-2.6%2Fcompat-2.6%2Finclude%2Flinux%2Fnetdevice.h;h=2a05f3705576346582e833e7fc6743d2ac0ba49f;hb=85444c3f79f594c838d4b3e72ff27e263514f194;hp=0a0e47abd41224141f355745b6534c51ecfe4651;hpb=02059c09d4d7bc4860db9aee7f4daae43b6eab68;p=openvswitch diff --git a/datapath/linux-2.6/compat-2.6/include/linux/netdevice.h b/datapath/linux-2.6/compat-2.6/include/linux/netdevice.h index 0a0e47ab..2a05f370 100644 --- a/datapath/linux-2.6/compat-2.6/include/linux/netdevice.h +++ b/datapath/linux-2.6/compat-2.6/include/linux/netdevice.h @@ -67,4 +67,26 @@ typedef int netdev_tx_t; #define net_xmit_eval(e) ((e) == NET_XMIT_CN? 0 : (e)) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33) +extern void unregister_netdevice_queue(struct net_device *dev, + struct list_head *head); +extern void unregister_netdevice_many(struct list_head *head); +#endif + +#ifndef HAVE_DEV_DISABLE_LRO +extern void dev_disable_lro(struct net_device *dev); +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29) +static inline const struct net_device_stats * +dev_get_stats(struct net_device *dev) +{ + return dev->get_stats(dev); +} +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) +#define skb_checksum_help(skb) skb_checksum_help((skb), 0) +#endif + #endif