summaryrefslogtreecommitdiff
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorXiaoliang Yang <xiaoliang.yang_1@nxp.com>2021-07-05 18:26:54 +0800
committerDavid S. Miller <davem@davemloft.net>2021-07-05 10:16:17 -0700
commitb2aae654a4794ef898ad33a179f341eb610f6b85 (patch)
tree54d9a6ce799d2efb7229bc116f24fc8c13b770ab /include/linux/stmmac.h
parent81c52c42afd92b741289208c65e5063b9e23ffb4 (diff)
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/linux/stmmac.h')
-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];