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
nexedi
linux
Commits
e66f82b1
Commit
e66f82b1
authored
Mar 22, 2003
by
Chas Williams
Committed by
David S. Miller
Mar 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM] nicstar doesnt count all dropped pdus and powerpc fixup.
parent
c1f33e8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drivers/atm/nicstar.c
drivers/atm/nicstar.c
+4
-5
No files found.
drivers/atm/nicstar.c
View file @
e66f82b1
...
...
@@ -487,11 +487,6 @@ static int __init ns_init_card(int i, struct pci_dev *pcidev)
card
->
atmdev
=
NULL
;
card
->
pcidev
=
pcidev
;
card
->
membase
=
pci_resource_start
(
pcidev
,
1
);
#ifdef __powerpc__
/* Compensate for different memory map between host CPU and PCI bus.
Shouldn't we use a macro for this? */
card
->
membase
+=
KERNELBASE
;
#endif
/* __powerpc__ */
card
->
membase
=
(
unsigned
long
)
ioremap
(
card
->
membase
,
NS_IOREMAP_SIZE
);
if
(
card
->
membase
==
0
)
{
...
...
@@ -2315,6 +2310,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
{
push_rxbufs
(
card
,
BUF_SM
,
(
u32
)
skb
,
(
u32
)
virt_to_bus
(
skb
->
data
),
0
,
0
);
atomic_inc
(
&
vcc
->
stats
->
rx_drop
);
}
else
{
...
...
@@ -2342,6 +2338,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
{
push_rxbufs
(
card
,
BUF_SM
,
(
u32
)
sb
,
(
u32
)
virt_to_bus
(
sb
->
data
),
0
,
0
);
atomic_inc
(
&
vcc
->
stats
->
rx_drop
);
}
else
{
...
...
@@ -2366,6 +2363,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
{
push_rxbufs
(
card
,
BUF_LG
,
(
u32
)
skb
,
(
u32
)
virt_to_bus
(
skb
->
data
),
0
,
0
);
atomic_inc
(
&
vcc
->
stats
->
rx_drop
);
}
else
{
...
...
@@ -2450,6 +2448,7 @@ static void dequeue_rx(ns_dev *card, ns_rsqe *rsqe)
}
else
dev_kfree_skb_any
(
hb
);
atomic_inc
(
&
vcc
->
stats
->
rx_drop
);
}
else
{
...
...
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