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
ffedcefb
Commit
ffedcefb
authored
Sep 08, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TIGON3]: Disable TSO for now, tso firmware can hang tx cpu.
parent
cbc3ec8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
drivers/net/tg3.c
drivers/net/tg3.c
+13
-6
No files found.
drivers/net/tg3.c
View file @
ffedcefb
...
@@ -48,6 +48,13 @@
...
@@ -48,6 +48,13 @@
#define TG3_VLAN_TAG_USED 0
#define TG3_VLAN_TAG_USED 0
#endif
#endif
#ifdef NETIF_F_TSO
/* XXX some bug in tso firmware hangs tx cpu, disabled until fixed */
#define TG3_DO_TSO 0
#else
#define TG3_DO_TSO 0
#endif
#include "tg3.h"
#include "tg3.h"
#define DRV_MODULE_NAME "tg3"
#define DRV_MODULE_NAME "tg3"
...
@@ -2336,7 +2343,7 @@ static int tg3_start_xmit_4gbug(struct sk_buff *skb, struct net_device *dev)
...
@@ -2336,7 +2343,7 @@ static int tg3_start_xmit_4gbug(struct sk_buff *skb, struct net_device *dev)
base_flags
=
0
;
base_flags
=
0
;
if
(
skb
->
ip_summed
==
CHECKSUM_HW
)
if
(
skb
->
ip_summed
==
CHECKSUM_HW
)
base_flags
|=
TXD_FLAG_TCPUDP_CSUM
;
base_flags
|=
TXD_FLAG_TCPUDP_CSUM
;
#if
def NETIF_F_TSO
#if
TG3_DO_TSO != 0
if
((
mss
=
skb_shinfo
(
skb
)
->
tso_size
)
!=
0
)
if
((
mss
=
skb_shinfo
(
skb
)
->
tso_size
)
!=
0
)
base_flags
|=
(
TXD_FLAG_CPU_PRE_DMA
|
base_flags
|=
(
TXD_FLAG_CPU_PRE_DMA
|
TXD_FLAG_CPU_POST_DMA
);
TXD_FLAG_CPU_POST_DMA
);
...
@@ -2501,7 +2508,7 @@ static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -2501,7 +2508,7 @@ static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
base_flags
=
0
;
base_flags
=
0
;
if
(
skb
->
ip_summed
==
CHECKSUM_HW
)
if
(
skb
->
ip_summed
==
CHECKSUM_HW
)
base_flags
|=
TXD_FLAG_TCPUDP_CSUM
;
base_flags
|=
TXD_FLAG_TCPUDP_CSUM
;
#if
def NETIF_F_TSO
#if
TG3_DO_TSO != 0
if
((
mss
=
skb_shinfo
(
skb
)
->
tso_size
)
!=
0
)
if
((
mss
=
skb_shinfo
(
skb
)
->
tso_size
)
!=
0
)
base_flags
|=
(
TXD_FLAG_CPU_PRE_DMA
|
base_flags
|=
(
TXD_FLAG_CPU_PRE_DMA
|
TXD_FLAG_CPU_POST_DMA
);
TXD_FLAG_CPU_POST_DMA
);
...
@@ -3424,7 +3431,7 @@ static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp)
...
@@ -3424,7 +3431,7 @@ static int tg3_load_5701_a0_firmware_fix(struct tg3 *tp)
return
0
;
return
0
;
}
}
#if
def NETIF_F_TSO
#if
TG3_DO_TSO != 0
#define TG3_TSO_FW_RELEASE_MAJOR 0x1
#define TG3_TSO_FW_RELEASE_MAJOR 0x1
#define TG3_TSO_FW_RELASE_MINOR 0x8
#define TG3_TSO_FW_RELASE_MINOR 0x8
...
@@ -3752,7 +3759,7 @@ static int tg3_load_tso_firmware(struct tg3 *tp)
...
@@ -3752,7 +3759,7 @@ static int tg3_load_tso_firmware(struct tg3 *tp)
return
0
;
return
0
;
}
}
#endif
/*
NETIF_F_TSO
*/
#endif
/*
TG3_DO_TSO != 0
*/
/* tp->lock is held. */
/* tp->lock is held. */
static
void
__tg3_set_mac_addr
(
struct
tg3
*
tp
)
static
void
__tg3_set_mac_addr
(
struct
tg3
*
tp
)
...
@@ -4203,7 +4210,7 @@ static int tg3_reset_hw(struct tg3 *tp)
...
@@ -4203,7 +4210,7 @@ static int tg3_reset_hw(struct tg3 *tp)
return
err
;
return
err
;
}
}
#if
def NETIF_F_TSO
#if
TG3_DO_TSO != 0
err
=
tg3_load_tso_firmware
(
tp
);
err
=
tg3_load_tso_firmware
(
tp
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
...
@@ -6563,7 +6570,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
...
@@ -6563,7 +6570,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
dev
->
vlan_rx_register
=
tg3_vlan_rx_register
;
dev
->
vlan_rx_register
=
tg3_vlan_rx_register
;
dev
->
vlan_rx_kill_vid
=
tg3_vlan_rx_kill_vid
;
dev
->
vlan_rx_kill_vid
=
tg3_vlan_rx_kill_vid
;
#endif
#endif
#if
def NETIF_F_TSO
#if
TG3_DO_TSO != 0
dev
->
features
|=
NETIF_F_TSO
;
dev
->
features
|=
NETIF_F_TSO
;
#endif
#endif
...
...
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