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
2aa9ef11
Commit
2aa9ef11
authored
Jan 09, 2012
by
Ben Hutchings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc: Minor formatting fixes
Signed-off-by:
Ben Hutchings
<
bhutchings@solarflare.com
>
parent
86ee5302
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.c
+4
-5
No files found.
drivers/net/ethernet/sfc/efx.c
View file @
2aa9ef11
...
...
@@ -798,16 +798,14 @@ void efx_link_status_changed(struct efx_nic *efx)
}
/* Status message for kernel log */
if
(
link_state
->
up
)
{
if
(
link_state
->
up
)
netif_info
(
efx
,
link
,
efx
->
net_dev
,
"link up at %uMbps %s-duplex (MTU %d)%s
\n
"
,
link_state
->
speed
,
link_state
->
fd
?
"full"
:
"half"
,
efx
->
net_dev
->
mtu
,
(
efx
->
promiscuous
?
" [PROMISC]"
:
""
));
}
else
{
else
netif_info
(
efx
,
link
,
efx
->
net_dev
,
"link down
\n
"
);
}
}
void
efx_link_set_advertising
(
struct
efx_nic
*
efx
,
u32
advertising
)
...
...
@@ -1741,7 +1739,8 @@ static int efx_net_stop(struct net_device *net_dev)
}
/* Context: process, dev_base_lock or RTNL held, non-blocking. */
static
struct
rtnl_link_stats64
*
efx_net_stats
(
struct
net_device
*
net_dev
,
struct
rtnl_link_stats64
*
stats
)
static
struct
rtnl_link_stats64
*
efx_net_stats
(
struct
net_device
*
net_dev
,
struct
rtnl_link_stats64
*
stats
)
{
struct
efx_nic
*
efx
=
netdev_priv
(
net_dev
);
struct
efx_mac_stats
*
mac_stats
=
&
efx
->
mac_stats
;
...
...
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