Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux-seco-rk4.4
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Rockchip
linux-seco-rk4.4
Commits
61b025cd
Commit
61b025cd
authored
4 years ago
by
Giuseppe Pagano
Browse files
Options
Downloads
Patches
Plain Diff
Use dunny Quectel EG25 stats to avoid kernel crash.
parent
21bde3ce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/net/usb/usbnet.c
+7
-1
7 additions, 1 deletion
drivers/net/usb/usbnet.c
with
7 additions
and
1 deletion
drivers/net/usb/usbnet.c
+
7
−
1
View file @
61b025cd
...
...
@@ -979,6 +979,12 @@ EXPORT_SYMBOL_GPL(usbnet_set_settings);
struct
rtnl_link_stats64
*
usbnet_get_stats64
(
struct
net_device
*
net
,
struct
rtnl_link_stats64
*
stats
)
{
#ifdef DUMMY_STATS_TO_AVOID_CRASH
stats
->
rx_packets
=
0
;
stats
->
rx_bytes
=
0
;
stats
->
tx_packets
=
0
;
stats
->
tx_bytes
=
0
;
#else
struct
usbnet
*
dev
=
netdev_priv
(
net
);
unsigned
int
start
;
int
cpu
;
...
...
@@ -1005,7 +1011,7 @@ usbnet_get_stats64(struct net_device *net, struct rtnl_link_stats64 *stats)
stats
->
tx_packets
+=
tx_packets
;
stats
->
tx_bytes
+=
tx_bytes
;
}
#endif
/* DUMMY_STATS_TO_AVOID_CRASH */
return
stats
;
}
EXPORT_SYMBOL_GPL
(
usbnet_get_stats64
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment