Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5097bc46
Commit
5097bc46
authored
Apr 06, 2004
by
François Romieu
Committed by
Jeff Garzik
Apr 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr r8169] DMA api resync.
parent
b342ada3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
drivers/net/r8169.c
drivers/net/r8169.c
+10
-7
No files found.
drivers/net/r8169.c
View file @
5097bc46
...
...
@@ -1429,19 +1429,22 @@ rtl8169_rx_interrupt(struct net_device *dev, struct rtl8169_private *tp,
struct
RxDesc
*
desc
=
tp
->
RxDescArray
+
entry
;
struct
sk_buff
*
skb
=
tp
->
Rx_skbuff
[
entry
];
int
pkt_size
=
(
status
&
0x00001FFF
)
-
4
;
void
(
*
pci_action
)(
struct
pci_dev
*
,
dma_addr_t
,
size_t
,
int
)
=
pci_dma_sync_single_for_device
;
pci_dma_sync_single
(
tp
->
pci_dev
,
le32_to_cpu
(
desc
->
buf_addr
),
RX_BUF_SIZE
,
PCI_DMA_FROMDEVICE
);
if
(
rtl8169_try_rx_copy
(
&
skb
,
pkt_size
,
desc
,
dev
))
{
pci_unmap_single
(
tp
->
pci_dev
,
le32_to_cpu
(
desc
->
buf_addr
),
RX_BUF_SIZE
,
pci_dma_sync_single_for_cpu
(
tp
->
pci_dev
,
le32_to_cpu
(
desc
->
buf_addr
),
RX_BUF_SIZE
,
PCI_DMA_FROMDEVICE
);
if
(
rtl8169_try_rx_copy
(
&
skb
,
pkt_size
,
desc
,
dev
))
{
pci_action
=
pci_unmap_single
;
tp
->
Rx_skbuff
[
entry
]
=
NULL
;
}
pci_action
(
tp
->
pci_dev
,
le32_to_cpu
(
desc
->
buf_addr
),
RX_BUF_SIZE
,
PCI_DMA_FROMDEVICE
);
skb_put
(
skb
,
pkt_size
);
skb
->
protocol
=
eth_type_trans
(
skb
,
dev
);
netif_rx
(
skb
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment