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
b9c5f4fd
Commit
b9c5f4fd
authored
Sep 07, 2004
by
Andi Kleen
Committed by
David S. Miller
Sep 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Add LLTX support.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
73d0d56a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/net/tg3.c
drivers/net/tg3.c
+6
-1
No files found.
drivers/net/tg3.c
View file @
b9c5f4fd
...
@@ -3036,7 +3036,11 @@ static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -3036,7 +3036,11 @@ static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
* So we really do need to disable interrupts when taking
* So we really do need to disable interrupts when taking
* tx_lock here.
* tx_lock here.
*/
*/
spin_lock_irqsave
(
&
tp
->
tx_lock
,
flags
);
local_irq_save
(
flags
);
if
(
!
spin_trylock
(
&
tp
->
tx_lock
))
{
local_irq_restore
(
flags
);
return
-
1
;
}
/* This is a hard error, log it. */
/* This is a hard error, log it. */
if
(
unlikely
(
TX_BUFFS_AVAIL
(
tp
)
<=
(
skb_shinfo
(
skb
)
->
nr_frags
+
1
)))
{
if
(
unlikely
(
TX_BUFFS_AVAIL
(
tp
)
<=
(
skb_shinfo
(
skb
)
->
nr_frags
+
1
)))
{
...
@@ -8255,6 +8259,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
...
@@ -8255,6 +8259,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
if
(
pci_using_dac
)
if
(
pci_using_dac
)
dev
->
features
|=
NETIF_F_HIGHDMA
;
dev
->
features
|=
NETIF_F_HIGHDMA
;
dev
->
features
|=
NETIF_F_LLTX
;
#if TG3_VLAN_TAG_USED
#if TG3_VLAN_TAG_USED
dev
->
features
|=
NETIF_F_HW_VLAN_TX
|
NETIF_F_HW_VLAN_RX
;
dev
->
features
|=
NETIF_F_HW_VLAN_TX
|
NETIF_F_HW_VLAN_RX
;
dev
->
vlan_rx_register
=
tg3_vlan_rx_register
;
dev
->
vlan_rx_register
=
tg3_vlan_rx_register
;
...
...
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