aboutsummaryrefslogtreecommitdiffstats
path: root/net/llc
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2012-05-10 17:14:35 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-05-15 20:14:35 -0400
commit211ed865108e24697b44bee5daac502ee6bdd4a4 (patch)
tree2a902c914f96298f265ef52cba5e463c5c8dea32 /net/llc
parent60eea6cf2964beea6c38d9050bc3823a93db97e0 (diff)
net: delete all instances of special processing for token ring
We are going to delete the Token ring support. This removes any special processing in the core networking for token ring, (aside from net/tr.c itself), leaving the drivers and remaining tokenring support present but inert. The mass removal of the drivers and net/tr.c will be in a separate commit, so that the history of these files that we still care about won't have the giant deletion tied into their history. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/llc')
-rw-r--r--net/llc/af_llc.c3
-rw-r--r--net/llc/llc_output.c3
-rw-r--r--net/llc/llc_sap.c4
3 files changed, 1 insertions, 9 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index 78424f41cf36..e9440753e16b 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -71,8 +71,7 @@ static inline u16 llc_ui_next_link_no(int sap)
71 */ 71 */
72static inline __be16 llc_proto_type(u16 arphrd) 72static inline __be16 llc_proto_type(u16 arphrd)
73{ 73{
74 return arphrd == ARPHRD_IEEE802_TR ? 74 return htons(ETH_P_802_2);
75 htons(ETH_P_TR_802_2) : htons(ETH_P_802_2);
76} 75}
77 76
78/** 77/**
diff --git a/net/llc/llc_output.c b/net/llc/llc_output.c
index b658cba89fdd..2dae8a5df23f 100644
--- a/net/llc/llc_output.c
+++ b/net/llc/llc_output.c
@@ -14,9 +14,7 @@
14 */ 14 */
15 15
16#include <linux/if_arp.h> 16#include <linux/if_arp.h>
17#include <linux/if_tr.h>
18#include <linux/netdevice.h> 17#include <linux/netdevice.h>
19#include <linux/trdevice.h>
20#include <linux/skbuff.h> 18#include <linux/skbuff.h>
21#include <linux/export.h> 19#include <linux/export.h>
22#include <net/llc.h> 20#include <net/llc.h>
@@ -37,7 +35,6 @@ int llc_mac_hdr_init(struct sk_buff *skb,
37 int rc = -EINVAL; 35 int rc = -EINVAL;
38 36
39 switch (skb->dev->type) { 37 switch (skb->dev->type) {
40 case ARPHRD_IEEE802_TR:
41 case ARPHRD_ETHER: 38 case ARPHRD_ETHER:
42 case ARPHRD_LOOPBACK: 39 case ARPHRD_LOOPBACK:
43 rc = dev_hard_header(skb, skb->dev, ETH_P_802_2, da, sa, 40 rc = dev_hard_header(skb, skb->dev, ETH_P_802_2, da, sa,
diff --git a/net/llc/llc_sap.c b/net/llc/llc_sap.c
index 94e7fca75b85..7c5073badc73 100644
--- a/net/llc/llc_sap.c
+++ b/net/llc/llc_sap.c
@@ -31,10 +31,6 @@ static int llc_mac_header_len(unsigned short devtype)
31 case ARPHRD_ETHER: 31 case ARPHRD_ETHER:
32 case ARPHRD_LOOPBACK: 32 case ARPHRD_LOOPBACK:
33 return sizeof(struct ethhdr); 33 return sizeof(struct ethhdr);
34#if defined(CONFIG_TR) || defined(CONFIG_TR_MODULE)
35 case ARPHRD_IEEE802_TR:
36 return sizeof(struct trh_hdr);
37#endif
38 } 34 }
39 return 0; 35 return 0;
40} 36}