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
5cd8b820
Commit
5cd8b820
authored
Jan 08, 2005
by
Ganesh Venkatesan
Committed by
Jeff Garzik
Jan 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ixgb: Enable Message Signalled Interrupts
Signed-off-by:
Ganesh Venkatesan
<
ganesh.venkatesan@intel.com
>
parent
0b51979f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
4 deletions
+29
-4
drivers/net/ixgb/ixgb.h
drivers/net/ixgb/ixgb.h
+3
-0
drivers/net/ixgb/ixgb_main.c
drivers/net/ixgb/ixgb_main.c
+26
-4
No files found.
drivers/net/ixgb/ixgb.h
View file @
5cd8b820
...
...
@@ -188,5 +188,8 @@ struct ixgb_adapter {
/* structs defined in ixgb_hw.h */
struct
ixgb_hw
hw
;
struct
ixgb_hw_stats
stats
;
#ifdef CONFIG_PCI_MSI
boolean_t
have_msi
;
#endif
};
#endif
/* _IXGB_H_ */
drivers/net/ixgb/ixgb_main.c
View file @
5cd8b820
...
...
@@ -230,9 +230,26 @@ int ixgb_up(struct ixgb_adapter *adapter)
ixgb_configure_rx
(
adapter
);
ixgb_alloc_rx_buffers
(
adapter
);
if
((
err
=
request_irq
(
adapter
->
pdev
->
irq
,
&
ixgb_intr
,
SA_SHIRQ
|
SA_SAMPLE_RANDOM
,
netdev
->
name
,
netdev
)))
#ifdef CONFIG_PCI_MSI
{
boolean_t
pcix
=
(
IXGB_READ_REG
(
&
adapter
->
hw
,
STATUS
)
&
IXGB_STATUS_PCIX_MODE
)
?
TRUE
:
FALSE
;
adapter
->
have_msi
=
TRUE
;
if
(
!
pcix
)
adapter
->
have_msi
=
FALSE
;
else
if
((
err
=
pci_enable_msi
(
adapter
->
pdev
)))
{
printk
(
KERN_ERR
"Unable to allocate MSI interrupt Error: %d
\n
"
,
err
);
adapter
->
have_msi
=
FALSE
;
/* proceed to try to request regular interrupt */
}
}
#endif
if
((
err
=
request_irq
(
adapter
->
pdev
->
irq
,
&
ixgb_intr
,
SA_SHIRQ
|
SA_SAMPLE_RANDOM
,
netdev
->
name
,
netdev
)))
return
err
;
/* disable interrupts and get the hardware into a known state */
...
...
@@ -269,7 +286,12 @@ void ixgb_down(struct ixgb_adapter *adapter, boolean_t kill_watchdog)
ixgb_irq_disable
(
adapter
);
free_irq
(
adapter
->
pdev
->
irq
,
netdev
);
if
(
kill_watchdog
)
#ifdef CONFIG_PCI_MSI
if
(
adapter
->
have_msi
==
TRUE
)
pci_disable_msi
(
adapter
->
pdev
);
#endif
if
(
kill_watchdog
)
del_timer_sync
(
&
adapter
->
watchdog_timer
);
adapter
->
link_speed
=
0
;
adapter
->
link_duplex
=
0
;
...
...
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