rionet.c (8a84fc15ae5cafcc366dd85cf8e1ab2040679abc) | rionet.c (4c13eb6657fe9ef7b4dc8f1a405c902e9e5234e0) |
---|---|
1/* 2 * rionet - Ethernet driver over RapidIO messaging services 3 * 4 * Copyright 2005 MontaVista Software, Inc. 5 * Matt Porter <mporter@kernel.crashing.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 101 unchanged lines hidden (view full) --- 110 if (!rnet->rx_skb[i]) 111 continue; 112 113 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) 114 break; 115 116 rnet->rx_skb[i]->data = data; 117 skb_put(rnet->rx_skb[i], RIO_MAX_MSG_SIZE); | 1/* 2 * rionet - Ethernet driver over RapidIO messaging services 3 * 4 * Copyright 2005 MontaVista Software, Inc. 5 * Matt Porter <mporter@kernel.crashing.org> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 101 unchanged lines hidden (view full) --- 110 if (!rnet->rx_skb[i]) 111 continue; 112 113 if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) 114 break; 115 116 rnet->rx_skb[i]->data = data; 117 skb_put(rnet->rx_skb[i], RIO_MAX_MSG_SIZE); |
118 rnet->rx_skb[i]->dev = ndev; | |
119 rnet->rx_skb[i]->protocol = 120 eth_type_trans(rnet->rx_skb[i], ndev); 121 error = netif_rx(rnet->rx_skb[i]); 122 123 if (error == NET_RX_DROP) { 124 rnet->stats.rx_dropped++; 125 } else if (error == NET_RX_BAD) { 126 if (netif_msg_rx_err(rnet)) --- 448 unchanged lines hidden --- | 118 rnet->rx_skb[i]->protocol = 119 eth_type_trans(rnet->rx_skb[i], ndev); 120 error = netif_rx(rnet->rx_skb[i]); 121 122 if (error == NET_RX_DROP) { 123 rnet->stats.rx_dropped++; 124 } else if (error == NET_RX_BAD) { 125 if (netif_msg_rx_err(rnet)) --- 448 unchanged lines hidden --- |