Re: [PATCH net] enic: initialize enic->rfs_h.lock in enic_probe

2018-06-19 Thread David Miller
From: Govindarajulu Varadarajan Date: Tue, 19 Jun 2018 08:15:24 -0700 > lockdep spotted that we are using rfs_h.lock in enic_get_rxnfc() without > initializing. rfs_h.lock is initialized in enic_open(). But ethtool_ops > can be called when interface is down. > > Move enic_rfs_flw_tbl_init to eni

[PATCH net] enic: initialize enic->rfs_h.lock in enic_probe

2018-06-19 Thread Govindarajulu Varadarajan
lockdep spotted that we are using rfs_h.lock in enic_get_rxnfc() without initializing. rfs_h.lock is initialized in enic_open(). But ethtool_ops can be called when interface is down. Move enic_rfs_flw_tbl_init to enic_probe. INFO: trying to register non-static key. the code is fine but needs lock