On Tue, Jan 3, 2017 at 8:18 PM, Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> wrote: > On Mon, Jan 02, 2017 at 01:17:36PM +0100, Jinpu Wang wrote: >> +++ b/include/rdma/ib_verbs.h >> @@ -1781,6 +1781,7 @@ struct ib_cache { >> struct ib_pkey_cache **pkey_cache; >> struct ib_gid_table **gid_cache; >> u8 *lmc_cache; >> + enum ib_port_state *port_state_cache; >> }; > > I think at this point the these per-port arrays should be moved into a > struct.. > > Jason Ok, I will create a struct ib_port_cache, which contains lmc_cache and port_state_cache. Will submit later today. 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