Re: [Patch net] team: avoid complex list operations in team_nl_cmd_options_set()

2019-02-12 Thread David Miller
From: Cong Wang Date: Mon, 11 Feb 2019 21:59:51 -0800 > The current opt_inst_list operations inside team_nl_cmd_options_set() > is too complex to track: > > LIST_HEAD(opt_inst_list); > nla_for_each_nested(...) { > list_for_each_entry(opt_inst, &team->option_inst_list, list) { >

Re: [Patch net] team: avoid complex list operations in team_nl_cmd_options_set()

2019-02-12 Thread Paolo Abeni
On Mon, 2019-02-11 at 21:59 -0800, Cong Wang wrote: > The current opt_inst_list operations inside team_nl_cmd_options_set() > is too complex to track: Indeed ! > LIST_HEAD(opt_inst_list); > nla_for_each_nested(...) { > list_for_each_entry(opt_inst, &team->option_inst_list, list) {

Re: [Patch net] team: avoid complex list operations in team_nl_cmd_options_set()

2019-02-12 Thread Jiri Pirko
Tue, Feb 12, 2019 at 06:59:51AM CET, xiyou.wangc...@gmail.com wrote: >The current opt_inst_list operations inside team_nl_cmd_options_set() >is too complex to track: > >LIST_HEAD(opt_inst_list); >nla_for_each_nested(...) { >list_for_each_entry(opt_inst, &team->option_inst_list, list