Re: [PATCHv3 net] sock_diag: request _diag module only when the family or proto has been registered

2018-03-12 Thread David Miller
From: Xin Long Date: Sat, 10 Mar 2018 18:57:50 +0800 > Now when using 'ss' in iproute, kernel would try to load all _diag > modules, which also causes corresponding family and proto modules > to be loaded as well due to module dependencies. > > Like after running 'ss', sctp, dccp, af_packet (if

[PATCHv3 net] sock_diag: request _diag module only when the family or proto has been registered

2018-03-10 Thread Xin Long
Now when using 'ss' in iproute, kernel would try to load all _diag modules, which also causes corresponding family and proto modules to be loaded as well due to module dependencies. Like after running 'ss', sctp, dccp, af_packet (if it works as a module) would be loaded. For example: $ lsmod|g