loopback.c (b22364c8eec89e6b0c081a237f3b6348df87796f) | loopback.c (4c13eb6657fe9ef7b4dc8f1a405c902e9e5234e0) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Pseudo-driver for the loopback interface. 7 * 8 * Version: @(#)loopback.c 1.0.4b 08/16/93 --- 123 unchanged lines hidden (view full) --- 132 */ 133static int loopback_xmit(struct sk_buff *skb, struct net_device *dev) 134{ 135 struct pcpu_lstats *lb_stats; 136 137 skb_orphan(skb); 138 139 skb->protocol = eth_type_trans(skb,dev); | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Pseudo-driver for the loopback interface. 7 * 8 * Version: @(#)loopback.c 1.0.4b 08/16/93 --- 123 unchanged lines hidden (view full) --- 132 */ 133static int loopback_xmit(struct sk_buff *skb, struct net_device *dev) 134{ 135 struct pcpu_lstats *lb_stats; 136 137 skb_orphan(skb); 138 139 skb->protocol = eth_type_trans(skb,dev); |
140 skb->dev = dev; | |
141#ifndef LOOPBACK_MUST_CHECKSUM 142 skb->ip_summed = CHECKSUM_UNNECESSARY; 143#endif 144 145#ifdef LOOPBACK_TSO 146 if (skb_is_gso(skb)) { 147 BUG_ON(skb->protocol != htons(ETH_P_IP)); 148 BUG_ON(skb->nh.iph->protocol != IPPROTO_TCP); --- 91 unchanged lines hidden --- | 140#ifndef LOOPBACK_MUST_CHECKSUM 141 skb->ip_summed = CHECKSUM_UNNECESSARY; 142#endif 143 144#ifdef LOOPBACK_TSO 145 if (skb_is_gso(skb)) { 146 BUG_ON(skb->protocol != htons(ETH_P_IP)); 147 BUG_ON(skb->nh.iph->protocol != IPPROTO_TCP); --- 91 unchanged lines hidden --- |