Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
59f8500e
Commit
59f8500e
authored
Dec 22, 2008
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert ixp4xx_eth driver to use net_device_ops.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
4cb56b68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
drivers/net/arm/ixp4xx_eth.c
drivers/net/arm/ixp4xx_eth.c
+10
-5
No files found.
drivers/net/arm/ixp4xx_eth.c
View file @
59f8500e
...
@@ -1125,6 +1125,15 @@ static int eth_close(struct net_device *dev)
...
@@ -1125,6 +1125,15 @@ static int eth_close(struct net_device *dev)
return
0
;
return
0
;
}
}
static
const
struct
net_device_ops
ixp4xx_netdev_ops
=
{
.
ndo_open
=
eth_open
,
.
ndo_stop
=
eth_close
,
.
ndo_start_xmit
=
eth_xmit
,
.
ndo_set_multicast_list
=
eth_set_mcast_list
,
.
ndo_do_ioctl
=
eth_ioctl
,
};
static
int
__devinit
eth_init_one
(
struct
platform_device
*
pdev
)
static
int
__devinit
eth_init_one
(
struct
platform_device
*
pdev
)
{
{
struct
port
*
port
;
struct
port
*
port
;
...
@@ -1160,12 +1169,8 @@ static int __devinit eth_init_one(struct platform_device *pdev)
...
@@ -1160,12 +1169,8 @@ static int __devinit eth_init_one(struct platform_device *pdev)
goto
err_free
;
goto
err_free
;
}
}
dev
->
open
=
eth_open
;
dev
->
netdev_ops
=
&
ixp4xx_netdev_ops
;
dev
->
hard_start_xmit
=
eth_xmit
;
dev
->
stop
=
eth_close
;
dev
->
do_ioctl
=
eth_ioctl
;
dev
->
ethtool_ops
=
&
ixp4xx_ethtool_ops
;
dev
->
ethtool_ops
=
&
ixp4xx_ethtool_ops
;
dev
->
set_multicast_list
=
eth_set_mcast_list
;
dev
->
tx_queue_len
=
100
;
dev
->
tx_queue_len
=
100
;
netif_napi_add
(
dev
,
&
port
->
napi
,
eth_poll
,
NAPI_WEIGHT
);
netif_napi_add
(
dev
,
&
port
->
napi
,
eth_poll
,
NAPI_WEIGHT
);
...
...
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