From 362b123f473cbc72d43720f9245c68d174439310 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Mon, 11 Jan 2016 22:41:19 -0800 Subject: net: tsec: Move rx_idx and tx_idx to struct tsec_private At present rx_idx and tx_idx are declared as static variables in the driver codes. To support multiple interfaces, move it to struct tsec_private. Signed-off-by: Bin Meng Acked-by: Joe Hershberger --- include/tsec.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/tsec.h') diff --git a/include/tsec.h b/include/tsec.h index f2aa11a..023f095 100644 --- a/include/tsec.h +++ b/include/tsec.h @@ -396,6 +396,8 @@ struct tsec_private { uint phyaddr; char mii_devname[16]; u32 flags; + uint rx_idx; /* index of the current RX buffer */ + uint tx_idx; /* index of the current TX buffer */ }; struct tsec_info_struct { -- cgit v1.1