diff options
Diffstat (limited to 'net/core/pktgen.c')
| -rw-r--r-- | net/core/pktgen.c | 17 | 
1 files changed, 7 insertions, 10 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 0001c243b35..449fe0f068f 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -1304,7 +1304,7 @@ static ssize_t pktgen_if_write(struct file *file,  		scan_ip6(buf, pkt_dev->in6_daddr.s6_addr);  		snprintf(buf, sizeof(buf), "%pI6c", &pkt_dev->in6_daddr); -		ipv6_addr_copy(&pkt_dev->cur_in6_daddr, &pkt_dev->in6_daddr); +		pkt_dev->cur_in6_daddr = pkt_dev->in6_daddr;  		if (debug)  			printk(KERN_DEBUG "pktgen: dst6 set to: %s\n", buf); @@ -1327,8 +1327,7 @@ static ssize_t pktgen_if_write(struct file *file,  		scan_ip6(buf, pkt_dev->min_in6_daddr.s6_addr);  		snprintf(buf, sizeof(buf), "%pI6c", &pkt_dev->min_in6_daddr); -		ipv6_addr_copy(&pkt_dev->cur_in6_daddr, -			       &pkt_dev->min_in6_daddr); +		pkt_dev->cur_in6_daddr = pkt_dev->min_in6_daddr;  		if (debug)  			printk(KERN_DEBUG "pktgen: dst6_min set to: %s\n", buf); @@ -1371,7 +1370,7 @@ static ssize_t pktgen_if_write(struct file *file,  		scan_ip6(buf, pkt_dev->in6_saddr.s6_addr);  		snprintf(buf, sizeof(buf), "%pI6c", &pkt_dev->in6_saddr); -		ipv6_addr_copy(&pkt_dev->cur_in6_saddr, &pkt_dev->in6_saddr); +		pkt_dev->cur_in6_saddr = pkt_dev->in6_saddr;  		if (debug)  			printk(KERN_DEBUG "pktgen: src6 set to: %s\n", buf); @@ -2079,9 +2078,7 @@ static void pktgen_setup_inject(struct pktgen_dev *pkt_dev)  				     ifp = ifp->if_next) {  					if (ifp->scope == IFA_LINK &&  					    !(ifp->flags & IFA_F_TENTATIVE)) { -						ipv6_addr_copy(&pkt_dev-> -							       cur_in6_saddr, -							       &ifp->addr); +						pkt_dev->cur_in6_saddr = ifp->addr;  						err = 0;  						break;  					} @@ -2958,8 +2955,8 @@ static struct sk_buff *fill_packet_ipv6(struct net_device *odev,  	iph->payload_len = htons(sizeof(struct udphdr) + datalen);  	iph->nexthdr = IPPROTO_UDP; -	ipv6_addr_copy(&iph->daddr, &pkt_dev->cur_in6_daddr); -	ipv6_addr_copy(&iph->saddr, &pkt_dev->cur_in6_saddr); +	iph->daddr = pkt_dev->cur_in6_daddr; +	iph->saddr = pkt_dev->cur_in6_saddr;  	skb->mac_header = (skb->network_header - ETH_HLEN -  			   pkt_dev->pkt_overhead); @@ -3345,7 +3342,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)  	__netif_tx_lock_bh(txq); -	if (unlikely(netif_tx_queue_frozen_or_stopped(txq))) { +	if (unlikely(netif_xmit_frozen_or_stopped(txq))) {  		ret = NETDEV_TX_BUSY;  		pkt_dev->last_ok = 0;  		goto unlock;  |