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
bc09cd80
Commit
bc09cd80
authored
Sep 17, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TIGON3]: Optimize NAPI irq masking a bit.
parent
f5a04387
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
drivers/net/tg3.c
drivers/net/tg3.c
+19
-6
No files found.
drivers/net/tg3.c
View file @
bc09cd80
...
@@ -234,9 +234,23 @@ static void tg3_enable_ints(struct tg3 *tp)
...
@@ -234,9 +234,23 @@ static void tg3_enable_ints(struct tg3 *tp)
tw32
(
GRC_LOCAL_CTRL
,
tw32
(
GRC_LOCAL_CTRL
,
tp
->
grc_local_ctrl
|
GRC_LCLCTRL_SETINT
);
tp
->
grc_local_ctrl
|
GRC_LCLCTRL_SETINT
);
}
}
#if 0
tr32
(
MAILBOX_INTERRUPT_0
+
TG3_64BIT_REG_LOW
);
tr32
(
MAILBOX_INTERRUPT_0
+
TG3_64BIT_REG_LOW
);
#endif
}
static
inline
void
tg3_mask_ints
(
struct
tg3
*
tp
)
{
tw32
(
TG3PCI_MISC_HOST_CTRL
,
(
tp
->
misc_host_ctrl
|
MISC_HOST_CTRL_MASK_PCI_INT
));
}
static
inline
void
tg3_unmask_ints
(
struct
tg3
*
tp
)
{
tw32
(
TG3PCI_MISC_HOST_CTRL
,
(
tp
->
misc_host_ctrl
&
~
MISC_HOST_CTRL_MASK_PCI_INT
));
if
(
tp
->
hw_status
->
status
&
SD_STATUS_UPDATED
)
{
tw32
(
GRC_LOCAL_CTRL
,
tp
->
grc_local_ctrl
|
GRC_LCLCTRL_SETINT
);
}
}
}
static
void
tg3_switch_clocks
(
struct
tg3
*
tp
)
static
void
tg3_switch_clocks
(
struct
tg3
*
tp
)
...
@@ -2093,7 +2107,7 @@ static int tg3_poll(struct net_device *netdev, int *budget)
...
@@ -2093,7 +2107,7 @@ static int tg3_poll(struct net_device *netdev, int *budget)
if
(
done
)
{
if
(
done
)
{
netif_rx_complete
(
netdev
);
netif_rx_complete
(
netdev
);
tg3_
enable
_ints
(
tp
);
tg3_
unmask
_ints
(
tp
);
}
}
spin_unlock_irq
(
&
tp
->
lock
);
spin_unlock_irq
(
&
tp
->
lock
);
...
@@ -2120,11 +2134,10 @@ static __inline__ void tg3_interrupt_main_work(struct net_device *dev, struct tg
...
@@ -2120,11 +2134,10 @@ static __inline__ void tg3_interrupt_main_work(struct net_device *dev, struct tg
return
;
return
;
if
(
netif_rx_schedule_prep
(
dev
))
{
if
(
netif_rx_schedule_prep
(
dev
))
{
/* NOTE: Th
is write is
posted by the readback of
/* NOTE: Th
ese writes are
posted by the readback of
* the mailbox register done by our caller.
* the mailbox register done by our caller.
*/
*/
tw32
(
TG3PCI_MISC_HOST_CTRL
,
tg3_mask_ints
(
tp
);
(
tp
->
misc_host_ctrl
|
MISC_HOST_CTRL_MASK_PCI_INT
));
__netif_rx_schedule
(
dev
);
__netif_rx_schedule
(
dev
);
}
else
{
}
else
{
printk
(
KERN_ERR
PFX
"%s: Error, poll already scheduled
\n
"
,
printk
(
KERN_ERR
PFX
"%s: Error, poll already scheduled
\n
"
,
...
...
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