net: ethernet: Use netif_rx().
Since commit
   baebdf48c3 ("net: dev: Makes sure netif_rx() can be invoked in any context.")
the function netif_rx() can be used in preemptible/thread context as
well as in interrupt context.
Use netif_rx().
Cc: Łukasz Stelmach <l.stelmach@samsung.com>
Cc: Horatiu Vultur <horatiu.vultur@microchip.com>
Cc: UNGLinuxDriver@microchip.com
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
			
			
This commit is contained in:
		
							parent
							
								
									db00cc9da0
								
							
						
					
					
						commit
						90f77c1c51
					
				| @ -433,7 +433,7 @@ ax88796c_skb_return(struct ax88796c_device *ax_local, | ||||
| 	netif_info(ax_local, rx_status, ndev, "< rx, len %zu, type 0x%x\n", | ||||
| 		   skb->len + sizeof(struct ethhdr), skb->protocol); | ||||
| 
 | ||||
| 	status = netif_rx_ni(skb); | ||||
| 	status = netif_rx(skb); | ||||
| 	if (status != NET_RX_SUCCESS && net_ratelimit()) | ||||
| 		netif_info(ax_local, rx_err, ndev, | ||||
| 			   "netif_rx status %d\n", status); | ||||
|  | ||||
| @ -804,7 +804,7 @@ static int dm9051_loop_rx(struct board_info *db) | ||||
| 		skb->protocol = eth_type_trans(skb, db->ndev); | ||||
| 		if (db->ndev->features & NETIF_F_RXCSUM) | ||||
| 			skb_checksum_none_assert(skb); | ||||
| 		netif_rx_ni(skb); | ||||
| 		netif_rx(skb); | ||||
| 		db->ndev->stats.rx_bytes += rxlen; | ||||
| 		db->ndev->stats.rx_packets++; | ||||
| 		scanrr++; | ||||
|  | ||||
| @ -293,7 +293,7 @@ static void ks8851_wrfifo_spi(struct ks8851_net *ks, struct sk_buff *txp, | ||||
|  */ | ||||
| static void ks8851_rx_skb_spi(struct ks8851_net *ks, struct sk_buff *skb) | ||||
| { | ||||
| 	netif_rx_ni(skb); | ||||
| 	netif_rx(skb); | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  | ||||
| @ -975,7 +975,7 @@ static void enc28j60_hw_rx(struct net_device *ndev) | ||||
| 			/* update statistics */ | ||||
| 			ndev->stats.rx_packets++; | ||||
| 			ndev->stats.rx_bytes += len; | ||||
| 			netif_rx_ni(skb); | ||||
| 			netif_rx(skb); | ||||
| 		} | ||||
| 	} | ||||
| 	/*
 | ||||
|  | ||||
| @ -600,7 +600,7 @@ static irqreturn_t lan966x_xtr_irq_handler(int irq, void *args) | ||||
| 				skb->offload_fwd_mark = 0; | ||||
| 		} | ||||
| 
 | ||||
| 		netif_rx_ni(skb); | ||||
| 		netif_rx(skb); | ||||
| 		dev->stats.rx_bytes += len; | ||||
| 		dev->stats.rx_packets++; | ||||
| 
 | ||||
|  | ||||
| @ -435,7 +435,7 @@ qcaspi_receive(struct qcaspi *qca) | ||||
| 				qca->rx_skb->protocol = eth_type_trans( | ||||
| 					qca->rx_skb, qca->rx_skb->dev); | ||||
| 				skb_checksum_none_assert(qca->rx_skb); | ||||
| 				netif_rx_ni(qca->rx_skb); | ||||
| 				netif_rx(qca->rx_skb); | ||||
| 				qca->rx_skb = netdev_alloc_skb_ip_align(net_dev, | ||||
| 					net_dev->mtu + VLAN_ETH_HLEN); | ||||
| 				if (!qca->rx_skb) { | ||||
|  | ||||
| @ -108,7 +108,7 @@ qca_tty_receive(struct serdev_device *serdev, const unsigned char *data, | ||||
| 			qca->rx_skb->protocol = eth_type_trans( | ||||
| 						qca->rx_skb, qca->rx_skb->dev); | ||||
| 			skb_checksum_none_assert(qca->rx_skb); | ||||
| 			netif_rx_ni(qca->rx_skb); | ||||
| 			netif_rx(qca->rx_skb); | ||||
| 			qca->rx_skb = netdev_alloc_skb_ip_align(netdev, | ||||
| 								netdev->mtu + | ||||
| 								VLAN_ETH_HLEN); | ||||
|  | ||||
| @ -362,7 +362,7 @@ static void mse102x_rx_pkt_spi(struct mse102x_net *mse) | ||||
| 		mse102x_dump_packet(__func__, skb->len, skb->data); | ||||
| 
 | ||||
| 	skb->protocol = eth_type_trans(skb, mse->ndev); | ||||
| 	netif_rx_ni(skb); | ||||
| 	netif_rx(skb); | ||||
| 
 | ||||
| 	mse->ndev->stats.rx_packets++; | ||||
| 	mse->ndev->stats.rx_bytes += rxlen; | ||||
|  | ||||
| @ -883,7 +883,7 @@ static void w5100_rx_work(struct work_struct *work) | ||||
| 	struct sk_buff *skb; | ||||
| 
 | ||||
| 	while ((skb = w5100_rx_skb(priv->ndev))) | ||||
| 		netif_rx_ni(skb); | ||||
| 		netif_rx(skb); | ||||
| 
 | ||||
| 	w5100_enable_intr(priv); | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user