disable kernel module which is compiled in kernel (not loaded)
Clash Royale CLAN TAG#URR8PPP
up vote
17
down vote
favorite
My server has two 1-Gbit and two 10-Gbit onboard network cards.
I need to disable the 1-Gbit network cards completely, so that ifconfig -a
does not show them.
The network cards use different kernel modules. The 10-Gbit use ixgbe
, and the 1-Gbit use igb
.
01:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
Subsystem: Dell Ethernet 10G 4P X520/I350 rNDC
Kernel driver in use: ixgbe
05:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
Subsystem: Dell I350 Gigabit Network Connection
Kernel driver in use: igb
Both ixgbe
and igb
are compiled statically in the kernel (not as a lodable module). I need to disable the module using the kernel boot parameters
I have tried appending the following to my kernel, but it has no effect:
igb.blacklist=yes
igb.enable=0
igb.disable=yes
the igb network cards are still showing
How can I disable igb completely ?
kernel boot linux-kernel
add a comment |Â
up vote
17
down vote
favorite
My server has two 1-Gbit and two 10-Gbit onboard network cards.
I need to disable the 1-Gbit network cards completely, so that ifconfig -a
does not show them.
The network cards use different kernel modules. The 10-Gbit use ixgbe
, and the 1-Gbit use igb
.
01:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
Subsystem: Dell Ethernet 10G 4P X520/I350 rNDC
Kernel driver in use: ixgbe
05:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
Subsystem: Dell I350 Gigabit Network Connection
Kernel driver in use: igb
Both ixgbe
and igb
are compiled statically in the kernel (not as a lodable module). I need to disable the module using the kernel boot parameters
I have tried appending the following to my kernel, but it has no effect:
igb.blacklist=yes
igb.enable=0
igb.disable=yes
the igb network cards are still showing
How can I disable igb completely ?
kernel boot linux-kernel
add a comment |Â
up vote
17
down vote
favorite
up vote
17
down vote
favorite
My server has two 1-Gbit and two 10-Gbit onboard network cards.
I need to disable the 1-Gbit network cards completely, so that ifconfig -a
does not show them.
The network cards use different kernel modules. The 10-Gbit use ixgbe
, and the 1-Gbit use igb
.
01:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
Subsystem: Dell Ethernet 10G 4P X520/I350 rNDC
Kernel driver in use: ixgbe
05:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
Subsystem: Dell I350 Gigabit Network Connection
Kernel driver in use: igb
Both ixgbe
and igb
are compiled statically in the kernel (not as a lodable module). I need to disable the module using the kernel boot parameters
I have tried appending the following to my kernel, but it has no effect:
igb.blacklist=yes
igb.enable=0
igb.disable=yes
the igb network cards are still showing
How can I disable igb completely ?
kernel boot linux-kernel
My server has two 1-Gbit and two 10-Gbit onboard network cards.
I need to disable the 1-Gbit network cards completely, so that ifconfig -a
does not show them.
The network cards use different kernel modules. The 10-Gbit use ixgbe
, and the 1-Gbit use igb
.
01:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
Subsystem: Dell Ethernet 10G 4P X520/I350 rNDC
Kernel driver in use: ixgbe
05:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
Subsystem: Dell I350 Gigabit Network Connection
Kernel driver in use: igb
Both ixgbe
and igb
are compiled statically in the kernel (not as a lodable module). I need to disable the module using the kernel boot parameters
I have tried appending the following to my kernel, but it has no effect:
igb.blacklist=yes
igb.enable=0
igb.disable=yes
the igb network cards are still showing
How can I disable igb completely ?
kernel boot linux-kernel
kernel boot linux-kernel
asked 2 days ago
Martin Vegter
53031110219
53031110219
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
26
down vote
accepted
You should be able to blacklist the igb
âÂÂmoduleâÂÂ, even when built-in, by blacklisting its initialisation function: add
initcall_blacklist=igb_init_module
to your kernelâÂÂs boot parameters.
See How do I disable I2C Designware support when it's not built as a module? for background information. The general recipe here is to look for the module in the kernel source code, and look for functions which have the __init
attribute â there should only be one. Blacklist that, and the driver wonâÂÂt be initialised.
2
For those to whom it matters, theinitcall_blacklist
parameter appeared in Linux 3.16.
â Ruslan
yesterday
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
26
down vote
accepted
You should be able to blacklist the igb
âÂÂmoduleâÂÂ, even when built-in, by blacklisting its initialisation function: add
initcall_blacklist=igb_init_module
to your kernelâÂÂs boot parameters.
See How do I disable I2C Designware support when it's not built as a module? for background information. The general recipe here is to look for the module in the kernel source code, and look for functions which have the __init
attribute â there should only be one. Blacklist that, and the driver wonâÂÂt be initialised.
2
For those to whom it matters, theinitcall_blacklist
parameter appeared in Linux 3.16.
â Ruslan
yesterday
add a comment |Â
up vote
26
down vote
accepted
You should be able to blacklist the igb
âÂÂmoduleâÂÂ, even when built-in, by blacklisting its initialisation function: add
initcall_blacklist=igb_init_module
to your kernelâÂÂs boot parameters.
See How do I disable I2C Designware support when it's not built as a module? for background information. The general recipe here is to look for the module in the kernel source code, and look for functions which have the __init
attribute â there should only be one. Blacklist that, and the driver wonâÂÂt be initialised.
2
For those to whom it matters, theinitcall_blacklist
parameter appeared in Linux 3.16.
â Ruslan
yesterday
add a comment |Â
up vote
26
down vote
accepted
up vote
26
down vote
accepted
You should be able to blacklist the igb
âÂÂmoduleâÂÂ, even when built-in, by blacklisting its initialisation function: add
initcall_blacklist=igb_init_module
to your kernelâÂÂs boot parameters.
See How do I disable I2C Designware support when it's not built as a module? for background information. The general recipe here is to look for the module in the kernel source code, and look for functions which have the __init
attribute â there should only be one. Blacklist that, and the driver wonâÂÂt be initialised.
You should be able to blacklist the igb
âÂÂmoduleâÂÂ, even when built-in, by blacklisting its initialisation function: add
initcall_blacklist=igb_init_module
to your kernelâÂÂs boot parameters.
See How do I disable I2C Designware support when it's not built as a module? for background information. The general recipe here is to look for the module in the kernel source code, and look for functions which have the __init
attribute â there should only be one. Blacklist that, and the driver wonâÂÂt be initialised.
edited 2 days ago
answered 2 days ago
Stephen Kitt
144k22317382
144k22317382
2
For those to whom it matters, theinitcall_blacklist
parameter appeared in Linux 3.16.
â Ruslan
yesterday
add a comment |Â
2
For those to whom it matters, theinitcall_blacklist
parameter appeared in Linux 3.16.
â Ruslan
yesterday
2
2
For those to whom it matters, the
initcall_blacklist
parameter appeared in Linux 3.16.â Ruslan
yesterday
For those to whom it matters, the
initcall_blacklist
parameter appeared in Linux 3.16.â Ruslan
yesterday
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468024%2fdisable-kernel-module-which-is-compiled-in-kernel-not-loaded%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password