aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2013-02-18 14:20:33 -0500
committerDavid S. Miller <davem@davemloft.net>2013-02-19 00:51:10 -0500
commit900ff8c6321418dafa03c22e215cb9646a2541b9 (patch)
treeda94d724e34cda801d23aea533a5575084d31a8d /include
parent45d213f5f8733ab4b5b2424b21c0034d54c5a866 (diff)
net: move procfs code to net/core/net-procfs.c
Similar to net/core/net-sysfs.c, group procfs code to a single unit. Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h36
1 files changed, 33 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 920361bc27e7..f111b4f038f3 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2692,9 +2692,9 @@ extern void net_enable_timestamp(void);
2692extern void net_disable_timestamp(void); 2692extern void net_disable_timestamp(void);
2693 2693
2694#ifdef CONFIG_PROC_FS 2694#ifdef CONFIG_PROC_FS
2695extern void *dev_seq_start(struct seq_file *seq, loff_t *pos); 2695extern int __init dev_proc_init(void);
2696extern void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos); 2696#else
2697extern void dev_seq_stop(struct seq_file *seq, void *v); 2697#define dev_proc_init() 0
2698#endif 2698#endif
2699 2699
2700extern int netdev_class_create_file(struct class_attribute *class_attr); 2700extern int netdev_class_create_file(struct class_attribute *class_attr);
@@ -2896,4 +2896,34 @@ do { \
2896}) 2896})
2897#endif 2897#endif
2898 2898
2899/*
2900 * The list of packet types we will receive (as opposed to discard)
2901 * and the routines to invoke.
2902 *
2903 * Why 16. Because with 16 the only overlap we get on a hash of the
2904 * low nibble of the protocol value is RARP/SNAP/X.25.
2905 *
2906 * NOTE: That is no longer true with the addition of VLAN tags. Not
2907 * sure which should go first, but I bet it won't make much
2908 * difference if we are running VLANs. The good news is that
2909 * this protocol won't be in the list unless compiled in, so
2910 * the average user (w/out VLANs) will not be adversely affected.
2911 * --BLG
2912 *
2913 * 0800 IP
2914 * 8100 802.1Q VLAN
2915 * 0001 802.3
2916 * 0002 AX.25
2917 * 0004 802.2
2918 * 8035 RARP
2919 * 0005 SNAP
2920 * 0805 X.25
2921 * 0806 ARP
2922 * 8137 IPX
2923 * 0009 Localtalk
2924 * 86DD IPv6
2925 */
2926#define PTYPE_HASH_SIZE (16)
2927#define PTYPE_HASH_MASK (PTYPE_HASH_SIZE - 1)
2928
2899#endif /* _LINUX_NETDEVICE_H */ 2929#endif /* _LINUX_NETDEVICE_H */