On Wed, Jan 4, 2017 at 7:36 PM, Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> wrote: > On Wed, Jan 04, 2017 at 03:01:38PM +0100, Jinpu Wang wrote: > >> -struct ib_cache { >> - rwlock_t lock; >> - struct ib_event_handler event_handler; >> +struct ib_port_cache { >> struct ib_pkey_cache **pkey_cache; >> struct ib_gid_table **gid_cache; >> u8 *lmc_cache; >> enum ib_port_state *port_state_cache; >> }; >> >> +struct ib_cache { >> + rwlock_t lock; >> + struct ib_event_handler event_handler; >> + struct ib_port_cache port_cache; >> +}; > > That isn't really what I ment.. > > struct ib_port_cache { > enum ib_port_state port_state; > struct ib_pkey_cache *pkey; > struct ib_gid_table *gid; > u8 lmc; > }; > > struct ib_cache { > struct ib_port_cache *ports; > }; > > Jason Ah, okay, I will rework this patch and resubmit. Thanks Jason -- Jinpu Wang Linux Kernel Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Tel: +49 30 577 008 042 Fax: +49 30 577 008 299 Email: jinpu.wang@xxxxxxxxxxxxxxxx URL: https://www.profitbricks.de Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 125506 B Geschäftsführer: Achim Weiss -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html