aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/arp.c
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/ipv4/arp.c
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/ipv4/arp.c')
-rw-r--r--net/ipv4/arp.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 373b56bf8f49..5097571cc4b0 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -89,7 +89,6 @@
89#include <linux/etherdevice.h> 89#include <linux/etherdevice.h>
90#include <linux/fddidevice.h> 90#include <linux/fddidevice.h>
91#include <linux/if_arp.h> 91#include <linux/if_arp.h>
92#include <linux/trdevice.h>
93#include <linux/skbuff.h> 92#include <linux/skbuff.h>
94#include <linux/proc_fs.h> 93#include <linux/proc_fs.h>
95#include <linux/seq_file.h> 94#include <linux/seq_file.h>
@@ -193,9 +192,6 @@ int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir)
193 case ARPHRD_IEEE802: 192 case ARPHRD_IEEE802:
194 ip_eth_mc_map(addr, haddr); 193 ip_eth_mc_map(addr, haddr);
195 return 0; 194 return 0;
196 case ARPHRD_IEEE802_TR:
197 ip_tr_mc_map(addr, haddr);
198 return 0;
199 case ARPHRD_INFINIBAND: 195 case ARPHRD_INFINIBAND:
200 ip_ib_mc_map(addr, dev->broadcast, haddr); 196 ip_ib_mc_map(addr, dev->broadcast, haddr);
201 return 0; 197 return 0;
@@ -648,12 +644,6 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
648 arp->ar_pro = htons(ETH_P_IP); 644 arp->ar_pro = htons(ETH_P_IP);
649 break; 645 break;
650#endif 646#endif
651#if IS_ENABLED(CONFIG_TR)
652 case ARPHRD_IEEE802_TR:
653 arp->ar_hrd = htons(ARPHRD_IEEE802);
654 arp->ar_pro = htons(ETH_P_IP);
655 break;
656#endif
657 } 647 }
658 648
659 arp->ar_hln = dev->addr_len; 649 arp->ar_hln = dev->addr_len;
@@ -751,11 +741,10 @@ static int arp_process(struct sk_buff *skb)
751 goto out; 741 goto out;
752 break; 742 break;
753 case ARPHRD_ETHER: 743 case ARPHRD_ETHER:
754 case ARPHRD_IEEE802_TR:
755 case ARPHRD_FDDI: 744 case ARPHRD_FDDI:
756 case ARPHRD_IEEE802: 745 case ARPHRD_IEEE802:
757 /* 746 /*
758 * ETHERNET, Token Ring and Fibre Channel (which are IEEE 802 747 * ETHERNET, and Fibre Channel (which are IEEE 802
759 * devices, according to RFC 2625) devices will accept ARP 748 * devices, according to RFC 2625) devices will accept ARP
760 * hardware types of either 1 (Ethernet) or 6 (IEEE 802.2). 749 * hardware types of either 1 (Ethernet) or 6 (IEEE 802.2).
761 * This is the case also of FDDI, where the RFC 1390 says that 750 * This is the case also of FDDI, where the RFC 1390 says that