commit | 688f9aa4f24ffac148f6b4127602f10a7837d4ba | [log] [tgz] |
---|---|---|
author | Sabrina Dubroca <sd@queasysnail.net> | Tue Aug 16 16:26:56 2016 +0200 |
committer | Stephen Hemminger <sthemmin@microsoft.com> | Wed Aug 17 13:59:52 2016 -0700 |
tree | 62b0f7a9d050c35ffb589ad82509595b5b381ab6 | |
parent | 2b68cb77cde32f5cba5f984e15fc402758edea76 [diff] |
macsec: show usage even if the module is not available Currently, the `ip macsec` command tries to initialize a genl context even when we just want to see the help for the command, which doesn't require to talk to the kernel at all. Delay genl initialization, which can fail if the module isn't loaded, until the point where we will actually need it. Fixes: b26fc590ce62 ("ip: add MACsec support") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>