summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXiaoliang Yang <xiaoliang.yang_1@nxp.com>2021-07-05 12:26:54 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-05 19:16:17 +0200
commitb2aae654a4794ef898ad33a179f341eb610f6b85 (patch)
tree54d9a6ce799d2efb7229bc116f24fc8c13b770ab /include
parentnet: stmmac: separate the tas basetime calculation function (diff)
downloadlinux-b2aae654a4794ef898ad33a179f341eb610f6b85.tar.xz
linux-b2aae654a4794ef898ad33a179f341eb610f6b85.zip
net: stmmac: add mutex lock to protect est parameters
Add a mutex lock to protect est structure parameters so that the EST parameters can be updated by other threads. Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/stmmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index d5ae621d66ba..09157b8a5810 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -115,6 +115,7 @@ struct stmmac_axi {
#define EST_GCL 1024
struct stmmac_est {
+ struct mutex lock;
int enable;
u32 btr_offset[2];
u32 btr[2];