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
a2224ad3
Commit
a2224ad3
authored
Nov 14, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'davem-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
parents
5421ae01
3e44017b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
29 deletions
+15
-29
drivers/net/atl1e/atl1e_hw.c
drivers/net/atl1e/atl1e_hw.c
+0
-4
drivers/net/atlx/atl1.c
drivers/net/atlx/atl1.c
+3
-14
drivers/net/gianfar.c
drivers/net/gianfar.c
+8
-7
drivers/net/phy/mdio_bus.c
drivers/net/phy/mdio_bus.c
+1
-1
drivers/net/ucc_geth_ethtool.c
drivers/net/ucc_geth_ethtool.c
+3
-3
No files found.
drivers/net/atl1e/atl1e_hw.c
View file @
a2224ad3
...
@@ -163,9 +163,6 @@ int atl1e_read_mac_addr(struct atl1e_hw *hw)
...
@@ -163,9 +163,6 @@ int atl1e_read_mac_addr(struct atl1e_hw *hw)
* atl1e_hash_mc_addr
* atl1e_hash_mc_addr
* purpose
* purpose
* set hash value for a multicast address
* set hash value for a multicast address
* hash calcu processing :
* 1. calcu 32bit CRC for multicast address
* 2. reverse crc with MSB to LSB
*/
*/
u32
atl1e_hash_mc_addr
(
struct
atl1e_hw
*
hw
,
u8
*
mc_addr
)
u32
atl1e_hash_mc_addr
(
struct
atl1e_hw
*
hw
,
u8
*
mc_addr
)
{
{
...
@@ -174,7 +171,6 @@ u32 atl1e_hash_mc_addr(struct atl1e_hw *hw, u8 *mc_addr)
...
@@ -174,7 +171,6 @@ u32 atl1e_hash_mc_addr(struct atl1e_hw *hw, u8 *mc_addr)
int
i
;
int
i
;
crc32
=
ether_crc_le
(
6
,
mc_addr
);
crc32
=
ether_crc_le
(
6
,
mc_addr
);
crc32
=
~
crc32
;
for
(
i
=
0
;
i
<
32
;
i
++
)
for
(
i
=
0
;
i
<
32
;
i
++
)
value
|=
(((
crc32
>>
i
)
&
1
)
<<
(
31
-
i
));
value
|=
(((
crc32
>>
i
)
&
1
)
<<
(
31
-
i
));
...
...
drivers/net/atlx/atl1.c
View file @
a2224ad3
...
@@ -3404,14 +3404,8 @@ static void atl1_get_wol(struct net_device *netdev,
...
@@ -3404,14 +3404,8 @@ static void atl1_get_wol(struct net_device *netdev,
{
{
struct
atl1_adapter
*
adapter
=
netdev_priv
(
netdev
);
struct
atl1_adapter
*
adapter
=
netdev_priv
(
netdev
);
wol
->
supported
=
WAKE_
UCAST
|
WAKE_MCAST
|
WAKE_BCAST
|
WAKE_
MAGIC
;
wol
->
supported
=
WAKE_MAGIC
;
wol
->
wolopts
=
0
;
wol
->
wolopts
=
0
;
if
(
adapter
->
wol
&
ATLX_WUFC_EX
)
wol
->
wolopts
|=
WAKE_UCAST
;
if
(
adapter
->
wol
&
ATLX_WUFC_MC
)
wol
->
wolopts
|=
WAKE_MCAST
;
if
(
adapter
->
wol
&
ATLX_WUFC_BC
)
wol
->
wolopts
|=
WAKE_BCAST
;
if
(
adapter
->
wol
&
ATLX_WUFC_MAG
)
if
(
adapter
->
wol
&
ATLX_WUFC_MAG
)
wol
->
wolopts
|=
WAKE_MAGIC
;
wol
->
wolopts
|=
WAKE_MAGIC
;
return
;
return
;
...
@@ -3422,15 +3416,10 @@ static int atl1_set_wol(struct net_device *netdev,
...
@@ -3422,15 +3416,10 @@ static int atl1_set_wol(struct net_device *netdev,
{
{
struct
atl1_adapter
*
adapter
=
netdev_priv
(
netdev
);
struct
atl1_adapter
*
adapter
=
netdev_priv
(
netdev
);
if
(
wol
->
wolopts
&
(
WAKE_PHY
|
WAKE_ARP
|
WAKE_MAGICSECURE
))
if
(
wol
->
wolopts
&
(
WAKE_PHY
|
WAKE_UCAST
|
WAKE_MCAST
|
WAKE_BCAST
|
WAKE_ARP
|
WAKE_MAGICSECURE
))
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
adapter
->
wol
=
0
;
adapter
->
wol
=
0
;
if
(
wol
->
wolopts
&
WAKE_UCAST
)
adapter
->
wol
|=
ATLX_WUFC_EX
;
if
(
wol
->
wolopts
&
WAKE_MCAST
)
adapter
->
wol
|=
ATLX_WUFC_MC
;
if
(
wol
->
wolopts
&
WAKE_BCAST
)
adapter
->
wol
|=
ATLX_WUFC_BC
;
if
(
wol
->
wolopts
&
WAKE_MAGIC
)
if
(
wol
->
wolopts
&
WAKE_MAGIC
)
adapter
->
wol
|=
ATLX_WUFC_MAG
;
adapter
->
wol
|=
ATLX_WUFC_MAG
;
return
0
;
return
0
;
...
...
drivers/net/gianfar.c
View file @
a2224ad3
...
@@ -1407,6 +1407,10 @@ static int gfar_clean_tx_ring(struct net_device *dev)
...
@@ -1407,6 +1407,10 @@ static int gfar_clean_tx_ring(struct net_device *dev)
if
(
bdp
->
status
&
TXBD_DEF
)
if
(
bdp
->
status
&
TXBD_DEF
)
dev
->
stats
.
collisions
++
;
dev
->
stats
.
collisions
++
;
/* Unmap the DMA memory */
dma_unmap_single
(
&
priv
->
dev
->
dev
,
bdp
->
bufPtr
,
bdp
->
length
,
DMA_TO_DEVICE
);
/* Free the sk buffer associated with this TxBD */
/* Free the sk buffer associated with this TxBD */
dev_kfree_skb_irq
(
priv
->
tx_skbuff
[
priv
->
skb_dirtytx
]);
dev_kfree_skb_irq
(
priv
->
tx_skbuff
[
priv
->
skb_dirtytx
]);
...
@@ -1666,6 +1670,9 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit)
...
@@ -1666,6 +1670,9 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit)
skb
=
priv
->
rx_skbuff
[
priv
->
skb_currx
];
skb
=
priv
->
rx_skbuff
[
priv
->
skb_currx
];
dma_unmap_single
(
&
priv
->
dev
->
dev
,
bdp
->
bufPtr
,
priv
->
rx_buffer_size
,
DMA_FROM_DEVICE
);
/* We drop the frame if we failed to allocate a new buffer */
/* We drop the frame if we failed to allocate a new buffer */
if
(
unlikely
(
!
newskb
||
!
(
bdp
->
status
&
RXBD_LAST
)
||
if
(
unlikely
(
!
newskb
||
!
(
bdp
->
status
&
RXBD_LAST
)
||
bdp
->
status
&
RXBD_ERR
))
{
bdp
->
status
&
RXBD_ERR
))
{
...
@@ -1674,14 +1681,8 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit)
...
@@ -1674,14 +1681,8 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit)
if
(
unlikely
(
!
newskb
))
if
(
unlikely
(
!
newskb
))
newskb
=
skb
;
newskb
=
skb
;
if
(
skb
)
{
if
(
skb
)
dma_unmap_single
(
&
priv
->
dev
->
dev
,
bdp
->
bufPtr
,
priv
->
rx_buffer_size
,
DMA_FROM_DEVICE
);
dev_kfree_skb_any
(
skb
);
dev_kfree_skb_any
(
skb
);
}
}
else
{
}
else
{
/* Increment the number of packets */
/* Increment the number of packets */
dev
->
stats
.
rx_packets
++
;
dev
->
stats
.
rx_packets
++
;
...
...
drivers/net/phy/mdio_bus.c
View file @
a2224ad3
...
@@ -136,7 +136,7 @@ void mdiobus_unregister(struct mii_bus *bus)
...
@@ -136,7 +136,7 @@ void mdiobus_unregister(struct mii_bus *bus)
BUG_ON
(
bus
->
state
!=
MDIOBUS_REGISTERED
);
BUG_ON
(
bus
->
state
!=
MDIOBUS_REGISTERED
);
bus
->
state
=
MDIOBUS_UNREGISTERED
;
bus
->
state
=
MDIOBUS_UNREGISTERED
;
device_
unregister
(
&
bus
->
dev
);
device_
del
(
&
bus
->
dev
);
for
(
i
=
0
;
i
<
PHY_MAX_ADDR
;
i
++
)
{
for
(
i
=
0
;
i
<
PHY_MAX_ADDR
;
i
++
)
{
if
(
bus
->
phy_map
[
i
])
if
(
bus
->
phy_map
[
i
])
device_unregister
(
&
bus
->
phy_map
[
i
]
->
dev
);
device_unregister
(
&
bus
->
phy_map
[
i
]
->
dev
);
...
...
drivers/net/ucc_geth_ethtool.c
View file @
a2224ad3
...
@@ -323,17 +323,17 @@ static void uec_get_ethtool_stats(struct net_device *netdev,
...
@@ -323,17 +323,17 @@ static void uec_get_ethtool_stats(struct net_device *netdev,
if
(
stats_mode
&
UCC_GETH_STATISTICS_GATHERING_MODE_HARDWARE
)
{
if
(
stats_mode
&
UCC_GETH_STATISTICS_GATHERING_MODE_HARDWARE
)
{
base
=
(
u32
__iomem
*
)
&
ugeth
->
ug_regs
->
tx64
;
base
=
(
u32
__iomem
*
)
&
ugeth
->
ug_regs
->
tx64
;
for
(
i
=
0
;
i
<
UEC_HW_STATS_LEN
;
i
++
)
for
(
i
=
0
;
i
<
UEC_HW_STATS_LEN
;
i
++
)
data
[
j
++
]
=
(
u64
)
in_be32
(
&
base
[
i
]);
data
[
j
++
]
=
in_be32
(
&
base
[
i
]);
}
}
if
(
stats_mode
&
UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_TX
)
{
if
(
stats_mode
&
UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_TX
)
{
base
=
(
u32
__iomem
*
)
ugeth
->
p_tx_fw_statistics_pram
;
base
=
(
u32
__iomem
*
)
ugeth
->
p_tx_fw_statistics_pram
;
for
(
i
=
0
;
i
<
UEC_TX_FW_STATS_LEN
;
i
++
)
for
(
i
=
0
;
i
<
UEC_TX_FW_STATS_LEN
;
i
++
)
data
[
j
++
]
=
(
u64
)
in_be32
(
&
base
[
i
])
;
data
[
j
++
]
=
base
?
in_be32
(
&
base
[
i
])
:
0
;
}
}
if
(
stats_mode
&
UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_RX
)
{
if
(
stats_mode
&
UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_RX
)
{
base
=
(
u32
__iomem
*
)
ugeth
->
p_rx_fw_statistics_pram
;
base
=
(
u32
__iomem
*
)
ugeth
->
p_rx_fw_statistics_pram
;
for
(
i
=
0
;
i
<
UEC_RX_FW_STATS_LEN
;
i
++
)
for
(
i
=
0
;
i
<
UEC_RX_FW_STATS_LEN
;
i
++
)
data
[
j
++
]
=
(
u64
)
in_be32
(
&
base
[
i
])
;
data
[
j
++
]
=
base
?
in_be32
(
&
base
[
i
])
:
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