mirror of
				https://github.com/xcat2/xNBA.git
				synced 2025-11-04 05:12:33 +00:00 
			
		
		
		
	Report RX errors via netdev_rx_err()
This commit is contained in:
		@@ -453,6 +453,7 @@ static void undinet_poll ( struct net_device *netdev ) {
 | 
			
		||||
				       "allocate %zd bytes for RX buffer\n",
 | 
			
		||||
				       undinic, len );
 | 
			
		||||
				/* Fragment will be dropped */
 | 
			
		||||
				netdev_rx_err ( netdev, NULL, -ENOMEM );
 | 
			
		||||
				goto done;
 | 
			
		||||
			}
 | 
			
		||||
			if ( frag_len > iob_tailroom ( iobuf ) ) {
 | 
			
		||||
@@ -492,7 +493,7 @@ static void undinet_poll ( struct net_device *netdev ) {
 | 
			
		||||
	if ( iobuf ) {
 | 
			
		||||
		DBGC ( undinic, "UNDINIC %p returned incomplete packet\n",
 | 
			
		||||
		       undinic );
 | 
			
		||||
		netdev_rx ( netdev, iobuf );
 | 
			
		||||
		netdev_rx_err ( netdev, iobuf, -EINVAL );
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user