"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "driver/wrapndis.c" between
ndiswrapper-1.62.tar.gz and ndiswrapper-1.63.tar.gz

About: ndiswrapper is a linux kernel module that loads and runs NDIS (Windows network driver API) drivers supplied by wireless network card vendors.

wrapndis.c  (ndiswrapper-1.62):wrapndis.c  (ndiswrapper-1.63)
skipping to change at line 460 skipping to change at line 460
sg_list->nent = skb_shinfo(skb)->nr_frags + 1; sg_list->nent = skb_shinfo(skb)->nr_frags + 1;
TRACE3("%p, %d", sg_list, sg_list->nent); TRACE3("%p, %d", sg_list, sg_list->nent);
sg_element = sg_list->elements; sg_element = sg_list->elements;
sg_element->length = skb_headlen(skb); sg_element->length = skb_headlen(skb);
sg_element->address = sg_element->address =
PCI_DMA_MAP_SINGLE(wnd->wd->pci.pdev, skb->data, PCI_DMA_MAP_SINGLE(wnd->wd->pci.pdev, skb->data,
skb_headlen(skb), PCI_DMA_TODEVICE); skb_headlen(skb), PCI_DMA_TODEVICE);
for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
sg_element++; sg_element++;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0)
sg_element->length = skb_frag_size(frag);
#else
sg_element->length = frag->size; sg_element->length = frag->size;
#endif
sg_element->address = sg_element->address =
pci_map_page(wnd->wd->pci.pdev, skb_frag_page(frag), pci_map_page(wnd->wd->pci.pdev, skb_frag_page(frag),
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0)
skb_frag_off(frag), skb_frag_size(frag),
#else
frag->page_offset, frag->size, frag->page_offset, frag->size,
#endif
PCI_DMA_TODEVICE); PCI_DMA_TODEVICE);
TRACE3("%llx, %u", sg_element->address, sg_element->length); TRACE3("%llx, %u", sg_element->address, sg_element->length);
} }
oob_data->ext.info[ScatterGatherListPacketInfo] = sg_list; oob_data->ext.info[ScatterGatherListPacketInfo] = sg_list;
return 0; return 0;
} }
static void free_tx_sg_list(struct ndis_device *wnd, static void free_tx_sg_list(struct ndis_device *wnd,
struct ndis_packet_oob_data *oob_data) struct ndis_packet_oob_data *oob_data)
{ {
 End of changes. 4 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)