ibmveth.c (31d1b7710262fba12282b24083f20dc76e0efc93) | ibmveth.c (756af9c642329d54f048bac2a62f829b391f6944) |
---|---|
1/* 2 * IBM Power Virtual Ethernet Device Driver 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 1157 unchanged lines hidden (view full) --- 1166 DMA_TO_DEVICE); 1167 1168out: 1169 dev_consume_skb_any(skb); 1170 return NETDEV_TX_OK; 1171 1172map_failed_frags: 1173 last = i+1; | 1/* 2 * IBM Power Virtual Ethernet Device Driver 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 1157 unchanged lines hidden (view full) --- 1166 DMA_TO_DEVICE); 1167 1168out: 1169 dev_consume_skb_any(skb); 1170 return NETDEV_TX_OK; 1171 1172map_failed_frags: 1173 last = i+1; |
1174 for (i = 0; i < last; i++) | 1174 for (i = 1; i < last; i++) |
1175 dma_unmap_page(&adapter->vdev->dev, descs[i].fields.address, 1176 descs[i].fields.flags_len & IBMVETH_BUF_LEN_MASK, 1177 DMA_TO_DEVICE); 1178 | 1175 dma_unmap_page(&adapter->vdev->dev, descs[i].fields.address, 1176 descs[i].fields.flags_len & IBMVETH_BUF_LEN_MASK, 1177 DMA_TO_DEVICE); 1178 |
1179 dma_unmap_single(&adapter->vdev->dev, 1180 descs[0].fields.address, 1181 descs[0].fields.flags_len & IBMVETH_BUF_LEN_MASK, 1182 DMA_TO_DEVICE); |
|
1179map_failed: 1180 if (!firmware_has_feature(FW_FEATURE_CMO)) 1181 netdev_err(netdev, "tx: unable to map xmit buffer\n"); 1182 adapter->tx_map_failed++; 1183 if (skb_linearize(skb)) { 1184 netdev->stats.tx_dropped++; 1185 goto out; 1186 } --- 746 unchanged lines hidden --- | 1183map_failed: 1184 if (!firmware_has_feature(FW_FEATURE_CMO)) 1185 netdev_err(netdev, "tx: unable to map xmit buffer\n"); 1186 adapter->tx_map_failed++; 1187 if (skb_linearize(skb)) { 1188 netdev->stats.tx_dropped++; 1189 goto out; 1190 } --- 746 unchanged lines hidden --- |