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
4d7de66e
Commit
4d7de66e
authored
Jul 26, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
parents
e93adf1e
a4f1bac6
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
390 additions
and
61 deletions
+390
-61
drivers/net/tg3.c
drivers/net/tg3.c
+364
-53
drivers/net/tg3.h
drivers/net/tg3.h
+14
-1
drivers/usb/atm/speedtch.c
drivers/usb/atm/speedtch.c
+6
-6
include/linux/netfilter_ipv4/ip_conntrack.h
include/linux/netfilter_ipv4/ip_conntrack.h
+1
-1
include/linux/pci_ids.h
include/linux/pci_ids.h
+2
-0
net/xfrm/xfrm_user.c
net/xfrm/xfrm_user.c
+3
-0
No files found.
drivers/net/tg3.c
View file @
4d7de66e
This diff is collapsed.
Click to expand it.
drivers/net/tg3.h
View file @
4d7de66e
...
@@ -136,6 +136,7 @@
...
@@ -136,6 +136,7 @@
#define ASIC_REV_5705 0x03
#define ASIC_REV_5705 0x03
#define ASIC_REV_5750 0x04
#define ASIC_REV_5750 0x04
#define ASIC_REV_5752 0x06
#define ASIC_REV_5752 0x06
#define ASIC_REV_5780 0x08
#define GET_CHIP_REV(CHIP_REV_ID) ((CHIP_REV_ID) >> 8)
#define GET_CHIP_REV(CHIP_REV_ID) ((CHIP_REV_ID) >> 8)
#define CHIPREV_5700_AX 0x70
#define CHIPREV_5700_AX 0x70
#define CHIPREV_5700_BX 0x71
#define CHIPREV_5700_BX 0x71
...
@@ -984,14 +985,17 @@
...
@@ -984,14 +985,17 @@
#define DEFAULT_MB_RDMA_LOW_WATER 0x00000050
#define DEFAULT_MB_RDMA_LOW_WATER 0x00000050
#define DEFAULT_MB_RDMA_LOW_WATER_5705 0x00000000
#define DEFAULT_MB_RDMA_LOW_WATER_5705 0x00000000
#define DEFAULT_MB_RDMA_LOW_WATER_JUMBO 0x00000130
#define DEFAULT_MB_RDMA_LOW_WATER_JUMBO 0x00000130
#define DEFAULT_MB_RDMA_LOW_WATER_JUMBO_5780 0x00000000
#define BUFMGR_MB_MACRX_LOW_WATER 0x00004414
#define BUFMGR_MB_MACRX_LOW_WATER 0x00004414
#define DEFAULT_MB_MACRX_LOW_WATER 0x00000020
#define DEFAULT_MB_MACRX_LOW_WATER 0x00000020
#define DEFAULT_MB_MACRX_LOW_WATER_5705 0x00000010
#define DEFAULT_MB_MACRX_LOW_WATER_5705 0x00000010
#define DEFAULT_MB_MACRX_LOW_WATER_JUMBO 0x00000098
#define DEFAULT_MB_MACRX_LOW_WATER_JUMBO 0x00000098
#define DEFAULT_MB_MACRX_LOW_WATER_JUMBO_5780 0x0000004b
#define BUFMGR_MB_HIGH_WATER 0x00004418
#define BUFMGR_MB_HIGH_WATER 0x00004418
#define DEFAULT_MB_HIGH_WATER 0x00000060
#define DEFAULT_MB_HIGH_WATER 0x00000060
#define DEFAULT_MB_HIGH_WATER_5705 0x00000060
#define DEFAULT_MB_HIGH_WATER_5705 0x00000060
#define DEFAULT_MB_HIGH_WATER_JUMBO 0x0000017c
#define DEFAULT_MB_HIGH_WATER_JUMBO 0x0000017c
#define DEFAULT_MB_HIGH_WATER_JUMBO_5780 0x00000096
#define BUFMGR_RX_MB_ALLOC_REQ 0x0000441c
#define BUFMGR_RX_MB_ALLOC_REQ 0x0000441c
#define BUFMGR_MB_ALLOC_BIT 0x10000000
#define BUFMGR_MB_ALLOC_BIT 0x10000000
#define BUFMGR_RX_MB_ALLOC_RESP 0x00004420
#define BUFMGR_RX_MB_ALLOC_RESP 0x00004420
...
@@ -2087,6 +2091,8 @@ struct tg3 {
...
@@ -2087,6 +2091,8 @@ struct tg3 {
struct
tg3_rx_buffer_desc
*
rx_rcb
;
struct
tg3_rx_buffer_desc
*
rx_rcb
;
dma_addr_t
rx_rcb_mapping
;
dma_addr_t
rx_rcb_mapping
;
u32
rx_pkt_buf_sz
;
/* begin "everything else" cacheline(s) section */
/* begin "everything else" cacheline(s) section */
struct
net_device_stats
net_stats
;
struct
net_device_stats
net_stats
;
struct
net_device_stats
net_stats_prev
;
struct
net_device_stats
net_stats_prev
;
...
@@ -2124,7 +2130,7 @@ struct tg3 {
...
@@ -2124,7 +2130,7 @@ struct tg3 {
#define TG3_FLAG_NO_TX_PSEUDO_CSUM 0x00100000
#define TG3_FLAG_NO_TX_PSEUDO_CSUM 0x00100000
#define TG3_FLAG_NO_RX_PSEUDO_CSUM 0x00200000
#define TG3_FLAG_NO_RX_PSEUDO_CSUM 0x00200000
#define TG3_FLAG_SERDES_WOL_CAP 0x00400000
#define TG3_FLAG_SERDES_WOL_CAP 0x00400000
#define TG3_FLAG_JUMBO_
ENABLE
0x00800000
#define TG3_FLAG_JUMBO_
RING_ENABLE
0x00800000
#define TG3_FLAG_10_100_ONLY 0x01000000
#define TG3_FLAG_10_100_ONLY 0x01000000
#define TG3_FLAG_PAUSE_AUTONEG 0x02000000
#define TG3_FLAG_PAUSE_AUTONEG 0x02000000
#define TG3_FLAG_BROKEN_CHECKSUMS 0x10000000
#define TG3_FLAG_BROKEN_CHECKSUMS 0x10000000
...
@@ -2154,6 +2160,11 @@ struct tg3 {
...
@@ -2154,6 +2160,11 @@ struct tg3 {
#define TG3_FLG2_5750_PLUS 0x00080000
#define TG3_FLG2_5750_PLUS 0x00080000
#define TG3_FLG2_PROTECTED_NVRAM 0x00100000
#define TG3_FLG2_PROTECTED_NVRAM 0x00100000
#define TG3_FLG2_USING_MSI 0x00200000
#define TG3_FLG2_USING_MSI 0x00200000
#define TG3_FLG2_JUMBO_CAPABLE 0x00400000
#define TG3_FLG2_MII_SERDES 0x00800000
#define TG3_FLG2_ANY_SERDES (TG3_FLG2_PHY_SERDES | \
TG3_FLG2_MII_SERDES)
#define TG3_FLG2_PARALLEL_DETECT 0x01000000
u32
split_mode_max_reqs
;
u32
split_mode_max_reqs
;
#define SPLIT_MODE_5704_MAX_REQ 3
#define SPLIT_MODE_5704_MAX_REQ 3
...
@@ -2187,6 +2198,7 @@ struct tg3 {
...
@@ -2187,6 +2198,7 @@ struct tg3 {
u8
pci_bist
;
u8
pci_bist
;
int
pm_cap
;
int
pm_cap
;
int
msi_cap
;
/* PHY info */
/* PHY info */
u32
phy_id
;
u32
phy_id
;
...
@@ -2200,6 +2212,7 @@ struct tg3 {
...
@@ -2200,6 +2212,7 @@ struct tg3 {
#define PHY_ID_BCM5705 0x600081a0
#define PHY_ID_BCM5705 0x600081a0
#define PHY_ID_BCM5750 0x60008180
#define PHY_ID_BCM5750 0x60008180
#define PHY_ID_BCM5752 0x60008100
#define PHY_ID_BCM5752 0x60008100
#define PHY_ID_BCM5780 0x60008350
#define PHY_ID_BCM8002 0x60010140
#define PHY_ID_BCM8002 0x60010140
#define PHY_ID_INVALID 0xffffffff
#define PHY_ID_INVALID 0xffffffff
#define PHY_ID_REV_MASK 0x0000000f
#define PHY_ID_REV_MASK 0x0000000f
...
...
drivers/usb/atm/speedtch.c
View file @
4d7de66e
...
@@ -448,19 +448,19 @@ static void speedtch_check_status(struct speedtch_instance_data *instance)
...
@@ -448,19 +448,19 @@ static void speedtch_check_status(struct speedtch_instance_data *instance)
case
0
:
case
0
:
atm_dev
->
signal
=
ATM_PHY_SIG_LOST
;
atm_dev
->
signal
=
ATM_PHY_SIG_LOST
;
if
(
instance
->
last_status
)
if
(
instance
->
last_status
)
atm_info
(
usbatm
,
"
%s
\n
"
,
"ADSL line is dow
n"
);
atm_info
(
usbatm
,
"
ADSL line is down
\
n
"
);
/* It may never resync again unless we ask it to... */
/* It may never resync again unless we ask it to... */
ret
=
speedtch_start_synchro
(
instance
);
ret
=
speedtch_start_synchro
(
instance
);
break
;
break
;
case
0x08
:
case
0x08
:
atm_dev
->
signal
=
ATM_PHY_SIG_UNKNOWN
;
atm_dev
->
signal
=
ATM_PHY_SIG_UNKNOWN
;
atm_info
(
usbatm
,
"
%s
\n
"
,
"ADSL line is blocked?
"
);
atm_info
(
usbatm
,
"
ADSL line is blocked?
\n
"
);
break
;
break
;
case
0x10
:
case
0x10
:
atm_dev
->
signal
=
ATM_PHY_SIG_LOST
;
atm_dev
->
signal
=
ATM_PHY_SIG_LOST
;
atm_info
(
usbatm
,
"
%s
\n
"
,
"ADSL line is synchronising
"
);
atm_info
(
usbatm
,
"
ADSL line is synchronising
\n
"
);
break
;
break
;
case
0x20
:
case
0x20
:
...
@@ -502,7 +502,7 @@ static void speedtch_status_poll(unsigned long data)
...
@@ -502,7 +502,7 @@ static void speedtch_status_poll(unsigned long data)
if
(
instance
->
poll_delay
<
MAX_POLL_DELAY
)
if
(
instance
->
poll_delay
<
MAX_POLL_DELAY
)
mod_timer
(
&
instance
->
status_checker
.
timer
,
jiffies
+
msecs_to_jiffies
(
instance
->
poll_delay
));
mod_timer
(
&
instance
->
status_checker
.
timer
,
jiffies
+
msecs_to_jiffies
(
instance
->
poll_delay
));
else
else
atm_warn
(
instance
->
usbatm
,
"
%s
\n
"
,
"Too many failures - disabling line status polling
"
);
atm_warn
(
instance
->
usbatm
,
"
Too many failures - disabling line status polling
\n
"
);
}
}
static
void
speedtch_resubmit_int
(
unsigned
long
data
)
static
void
speedtch_resubmit_int
(
unsigned
long
data
)
...
@@ -545,9 +545,9 @@ static void speedtch_handle_int(struct urb *int_urb, struct pt_regs *regs)
...
@@ -545,9 +545,9 @@ static void speedtch_handle_int(struct urb *int_urb, struct pt_regs *regs)
if
((
count
==
6
)
&&
!
memcmp
(
up_int
,
instance
->
int_data
,
6
))
{
if
((
count
==
6
)
&&
!
memcmp
(
up_int
,
instance
->
int_data
,
6
))
{
del_timer
(
&
instance
->
status_checker
.
timer
);
del_timer
(
&
instance
->
status_checker
.
timer
);
atm_info
(
usbatm
,
"
%s
\n
"
,
"DSL line goes up
"
);
atm_info
(
usbatm
,
"
DSL line goes up
\n
"
);
}
else
if
((
count
==
6
)
&&
!
memcmp
(
down_int
,
instance
->
int_data
,
6
))
{
}
else
if
((
count
==
6
)
&&
!
memcmp
(
down_int
,
instance
->
int_data
,
6
))
{
atm_info
(
usbatm
,
"
%s
\n
"
,
"DSL line goes dow
n"
);
atm_info
(
usbatm
,
"
DSL line goes down
\
n
"
);
}
else
{
}
else
{
int
i
;
int
i
;
...
...
include/linux/netfilter_ipv4/ip_conntrack.h
View file @
4d7de66e
...
@@ -239,7 +239,7 @@ ip_conntrack_get(const struct sk_buff *skb, enum ip_conntrack_info *ctinfo)
...
@@ -239,7 +239,7 @@ ip_conntrack_get(const struct sk_buff *skb, enum ip_conntrack_info *ctinfo)
}
}
/* decrement reference count on a conntrack */
/* decrement reference count on a conntrack */
extern
inline
void
ip_conntrack_put
(
struct
ip_conntrack
*
ct
);
extern
void
ip_conntrack_put
(
struct
ip_conntrack
*
ct
);
/* call to create an explicit dependency on ip_conntrack. */
/* call to create an explicit dependency on ip_conntrack. */
extern
void
need_ip_conntrack
(
void
);
extern
void
need_ip_conntrack
(
void
);
...
...
include/linux/pci_ids.h
View file @
4d7de66e
...
@@ -2107,6 +2107,8 @@
...
@@ -2107,6 +2107,8 @@
#define PCI_DEVICE_ID_TIGON3_5721 0x1659
#define PCI_DEVICE_ID_TIGON3_5721 0x1659
#define PCI_DEVICE_ID_TIGON3_5705M 0x165d
#define PCI_DEVICE_ID_TIGON3_5705M 0x165d
#define PCI_DEVICE_ID_TIGON3_5705M_2 0x165e
#define PCI_DEVICE_ID_TIGON3_5705M_2 0x165e
#define PCI_DEVICE_ID_TIGON3_5780 0x166a
#define PCI_DEVICE_ID_TIGON3_5780S 0x166b
#define PCI_DEVICE_ID_TIGON3_5705F 0x166e
#define PCI_DEVICE_ID_TIGON3_5705F 0x166e
#define PCI_DEVICE_ID_TIGON3_5750 0x1676
#define PCI_DEVICE_ID_TIGON3_5750 0x1676
#define PCI_DEVICE_ID_TIGON3_5751 0x1677
#define PCI_DEVICE_ID_TIGON3_5751 0x1677
...
...
net/xfrm/xfrm_user.c
View file @
4d7de66e
...
@@ -1350,6 +1350,9 @@ static struct xfrm_policy *xfrm_compile_policy(u16 family, int opt,
...
@@ -1350,6 +1350,9 @@ static struct xfrm_policy *xfrm_compile_policy(u16 family, int opt,
if
(
nr
>
XFRM_MAX_DEPTH
)
if
(
nr
>
XFRM_MAX_DEPTH
)
return
NULL
;
return
NULL
;
if
(
p
->
dir
>
XFRM_POLICY_OUT
)
return
NULL
;
xp
=
xfrm_policy_alloc
(
GFP_KERNEL
);
xp
=
xfrm_policy_alloc
(
GFP_KERNEL
);
if
(
xp
==
NULL
)
{
if
(
xp
==
NULL
)
{
*
dir
=
-
ENOBUFS
;
*
dir
=
-
ENOBUFS
;
...
...
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