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
3fb17dab
Commit
3fb17dab
authored
Feb 08, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/jkirsher/net-2.6
parents
e0985f27
310e5ca8
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
14 deletions
+21
-14
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_hw.c
+3
-1
drivers/net/e1000/e1000_hw.h
drivers/net/e1000/e1000_hw.h
+1
-0
drivers/net/e1000e/netdev.c
drivers/net/e1000e/netdev.c
+0
-1
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_common.c
+3
-0
drivers/net/ixgbe/ixgbe_fcoe.c
drivers/net/ixgbe/ixgbe_fcoe.c
+1
-1
drivers/net/ixgbe/ixgbe_main.c
drivers/net/ixgbe/ixgbe_main.c
+10
-6
drivers/net/ixgbe/ixgbe_sriov.c
drivers/net/ixgbe/ixgbe_sriov.c
+0
-2
drivers/net/ixgbe/ixgbe_x540.c
drivers/net/ixgbe/ixgbe_x540.c
+3
-3
No files found.
drivers/net/e1000/e1000_hw.c
View file @
3fb17dab
...
...
@@ -124,6 +124,7 @@ static s32 e1000_set_phy_type(struct e1000_hw *hw)
case
M88E1000_I_PHY_ID
:
case
M88E1011_I_PHY_ID
:
case
M88E1111_I_PHY_ID
:
case
M88E1118_E_PHY_ID
:
hw
->
phy_type
=
e1000_phy_m88
;
break
;
case
IGP01E1000_I_PHY_ID
:
...
...
@@ -3222,7 +3223,8 @@ static s32 e1000_detect_gig_phy(struct e1000_hw *hw)
break
;
case
e1000_ce4100
:
if
((
hw
->
phy_id
==
RTL8211B_PHY_ID
)
||
(
hw
->
phy_id
==
RTL8201N_PHY_ID
))
(
hw
->
phy_id
==
RTL8201N_PHY_ID
)
||
(
hw
->
phy_id
==
M88E1118_E_PHY_ID
))
match
=
true
;
break
;
case
e1000_82541
:
...
...
drivers/net/e1000/e1000_hw.h
View file @
3fb17dab
...
...
@@ -2917,6 +2917,7 @@ struct e1000_host_command_info {
#define M88E1000_14_PHY_ID M88E1000_E_PHY_ID
#define M88E1011_I_REV_4 0x04
#define M88E1111_I_PHY_ID 0x01410CC0
#define M88E1118_E_PHY_ID 0x01410E40
#define L1LXT971A_PHY_ID 0x001378E0
#define RTL8211B_PHY_ID 0x001CC910
...
...
drivers/net/e1000e/netdev.c
View file @
3fb17dab
...
...
@@ -4309,7 +4309,6 @@ static void e1000_watchdog_task(struct work_struct *work)
* to get done, so reset controller to flush Tx.
* (Do the reset outside of interrupt context).
*/
adapter
->
tx_timeout_count
++
;
schedule_work
(
&
adapter
->
reset_task
);
/* return immediately since reset is imminent */
return
;
...
...
drivers/net/ixgbe/ixgbe_common.c
View file @
3fb17dab
...
...
@@ -1370,6 +1370,9 @@ s32 ixgbe_init_rx_addrs_generic(struct ixgbe_hw *hw)
hw_dbg
(
hw
,
" New MAC Addr =%pM
\n
"
,
hw
->
mac
.
addr
);
hw
->
mac
.
ops
.
set_rar
(
hw
,
0
,
hw
->
mac
.
addr
,
0
,
IXGBE_RAH_AV
);
/* clear VMDq pool/queue selection for RAR 0 */
hw
->
mac
.
ops
.
clear_vmdq
(
hw
,
0
,
IXGBE_CLEAR_VMDQ_ALL
);
}
hw
->
addr_ctrl
.
overflow_promisc
=
0
;
...
...
drivers/net/ixgbe/ixgbe_fcoe.c
View file @
3fb17dab
...
...
@@ -165,7 +165,7 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
unsigned
int
thisoff
=
0
;
unsigned
int
thislen
=
0
;
u32
fcbuff
,
fcdmarw
,
fcfltrw
;
dma_addr_t
addr
;
dma_addr_t
addr
=
0
;
if
(
!
netdev
||
!
sgl
)
return
0
;
...
...
drivers/net/ixgbe/ixgbe_main.c
View file @
3fb17dab
...
...
@@ -52,7 +52,7 @@ char ixgbe_driver_name[] = "ixgbe";
static
const
char
ixgbe_driver_string
[]
=
"Intel(R) 10 Gigabit PCI Express Network Driver"
;
#define DRV_VERSION "3.
0.12
-k2"
#define DRV_VERSION "3.
2.9
-k2"
const
char
ixgbe_driver_version
[]
=
DRV_VERSION
;
static
char
ixgbe_copyright
[]
=
"Copyright (c) 1999-2010 Intel Corporation."
;
...
...
@@ -3176,10 +3176,17 @@ static void ixgbe_set_rx_buffer_len(struct ixgbe_adapter *adapter)
u32
mhadd
,
hlreg0
;
/* Decide whether to use packet split mode or not */
/* Do not use packet split if we're in SR-IOV Mode */
if
(
!
adapter
->
num_vfs
)
/* On by default */
adapter
->
flags
|=
IXGBE_FLAG_RX_PS_ENABLED
;
/* Do not use packet split if we're in SR-IOV Mode */
if
(
adapter
->
num_vfs
)
adapter
->
flags
&=
~
IXGBE_FLAG_RX_PS_ENABLED
;
/* Disable packet split due to 82599 erratum #45 */
if
(
hw
->
mac
.
type
==
ixgbe_mac_82599EB
)
adapter
->
flags
&=
~
IXGBE_FLAG_RX_PS_ENABLED
;
/* Set the RX buffer length according to the mode */
if
(
adapter
->
flags
&
IXGBE_FLAG_RX_PS_ENABLED
)
{
rx_buf_len
=
IXGBE_RX_HDR_SIZE
;
...
...
@@ -4863,16 +4870,13 @@ static int ixgbe_alloc_q_vectors(struct ixgbe_adapter *adapter)
{
int
q_idx
,
num_q_vectors
;
struct
ixgbe_q_vector
*
q_vector
;
int
napi_vectors
;
int
(
*
poll
)(
struct
napi_struct
*
,
int
);
if
(
adapter
->
flags
&
IXGBE_FLAG_MSIX_ENABLED
)
{
num_q_vectors
=
adapter
->
num_msix_vectors
-
NON_Q_VECTORS
;
napi_vectors
=
adapter
->
num_rx_queues
;
poll
=
&
ixgbe_clean_rxtx_many
;
}
else
{
num_q_vectors
=
1
;
napi_vectors
=
1
;
poll
=
&
ixgbe_poll
;
}
...
...
drivers/net/ixgbe/ixgbe_sriov.c
View file @
3fb17dab
...
...
@@ -110,12 +110,10 @@ static int ixgbe_set_vf_vlan(struct ixgbe_adapter *adapter, int add, int vid,
return
adapter
->
hw
.
mac
.
ops
.
set_vfta
(
&
adapter
->
hw
,
vid
,
vf
,
(
bool
)
add
);
}
static
void
ixgbe_set_vmolr
(
struct
ixgbe_hw
*
hw
,
u32
vf
,
bool
aupe
)
{
u32
vmolr
=
IXGBE_READ_REG
(
hw
,
IXGBE_VMOLR
(
vf
));
vmolr
|=
(
IXGBE_VMOLR_ROMPE
|
IXGBE_VMOLR_ROPE
|
IXGBE_VMOLR_BAM
);
if
(
aupe
)
vmolr
|=
IXGBE_VMOLR_AUPE
;
...
...
drivers/net/ixgbe/ixgbe_x540.c
View file @
3fb17dab
...
...
@@ -133,17 +133,17 @@ static s32 ixgbe_reset_hw_X540(struct ixgbe_hw *hw)
}
ctrl
=
IXGBE_READ_REG
(
hw
,
IXGBE_CTRL
);
IXGBE_WRITE_REG
(
hw
,
IXGBE_CTRL
,
(
ctrl
|
IXGBE_CTRL_RST
));
IXGBE_WRITE_REG
(
hw
,
IXGBE_CTRL
,
(
ctrl
|
reset_bit
));
IXGBE_WRITE_FLUSH
(
hw
);
/* Poll for reset bit to self-clear indicating reset is complete */
for
(
i
=
0
;
i
<
10
;
i
++
)
{
udelay
(
1
);
ctrl
=
IXGBE_READ_REG
(
hw
,
IXGBE_CTRL
);
if
(
!
(
ctrl
&
IXGBE_CTRL_RST
))
if
(
!
(
ctrl
&
reset_bit
))
break
;
}
if
(
ctrl
&
IXGBE_CTRL_RST
)
{
if
(
ctrl
&
reset_bit
)
{
status
=
IXGBE_ERR_RESET_FAILED
;
hw_dbg
(
hw
,
"Reset polling failed to complete.
\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