diff mbox

[2/2] hw/phb3: Remove struct rtt_entry

Message ID 1437088352-6150-2-git-send-email-gwshan@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Gavin Shan July 16, 2015, 11:12 p.m. UTC
Nobody is using it except calculating the RTE table size. The
patch removes it.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
---
 include/phb3.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Comments

Stewart Smith Aug. 14, 2015, 4:11 a.m. UTC | #1
Gavin Shan <gwshan@linux.vnet.ibm.com> writes:
> Nobody is using it except calculating the RTE table size. The
> patch removes it.
>
> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>

thanks, merged as  d78a7b6da
diff mbox

Patch

diff --git a/include/phb3.h b/include/phb3.h
index c15f5d2..3accd9e 100644
--- a/include/phb3.h
+++ b/include/phb3.h
@@ -99,10 +99,7 @@ 
  * Entries are 2 bytes indexed by PCIe RID
  */
 #define RTT_TABLE_ENTRIES	0x10000
-#define RTT_TABLE_SIZE		(RTT_TABLE_ENTRIES * sizeof(struct rtt_entry))
-struct rtt_entry {
-	uint16_t pe_num;
-};
+#define RTT_TABLE_SIZE		0x20000
 
 /* IVT Table : MSI Interrupt vectors * state.
  *
@@ -301,7 +298,7 @@  struct phb3 {
 	const __be64		*lane_eq;
 	unsigned int		max_link_speed;
 
-	uint16_t		rte_cache[RTT_TABLE_SIZE/2];
+	uint16_t		rte_cache[RTT_TABLE_ENTRIES];
 	uint8_t			peltv_cache[PELTV_TABLE_SIZE];
 	uint64_t		lxive_cache[8];
 	uint64_t		ive_cache[IVT_TABLE_ENTRIES];