]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ila: show usage even if the module is not available
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 16 Aug 2016 14:26:58 +0000 (16:26 +0200)
committerStephen Hemminger <sthemmin@microsoft.com>
Wed, 17 Aug 2016 21:00:28 +0000 (14:00 -0700)
commit9423a324bf67913f9dec4bafe1fcb28a7995c8f2
treea61f280c6202f6b3290919648a906b32ebc5b52c
parentd240a0e174d54ae7613fd3034e281123968fdd9b
ila: show usage even if the module is not available

Currently, the `ip ila` 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: ec71cae0bb7b ("ila: Support for configuring ila to use netfilter hook")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
ip/ipila.c