Re: [PATCH 0/2] Bonding: fix IPv6 module requirement regression

Previous thread: [net-next PATCH 1/2] PCI: Add PCI quirk to disable L0s ASPM state for 82575 and 82598 by Jeff Kirsher on Tuesday, March 3, 2009 - 7:03 pm. (6 messages)

Next thread: [PATCH 1/2] IPv6: add "disable" module parameter support to ipv6.ko by Brian Haley on Tuesday, March 3, 2009 - 7:37 pm. (3 messages)
From: Brian Haley
Date: Tuesday, March 3, 2009 - 7:37 pm

These patches fix the Bonding module's requirement to have the IPv6
module loaded and configured by creating a new "disable" module parameter
value for ipv6.ko.  This allows users who do not want any IPv6 addresses
or sockets to be created to disable IPv6 support, while still loading
the module and making it's symbols available.  This can be specified in
/etc/modprobe.conf (or similar) with "options ipv6 disable=1".

I've verified that Bonding, SCTP, Sunrpc and DCCP will still load, however
dccp_ipv6 will not load when disable=1 - I believe this is ok as
IPv6 won't work anyways.


  Documentation/networking/ipv6.txt |   35 +++++++++++++++++++++++++++++++++++
  net/ipv6/af_inet6.c               |   22 ++++++++++++++++------
  net/sctp/protocol.c               |   11 ++++++++---
  3 files changed, 59 insertions(+), 9 deletions(-)
--

From: Andrey Borzenkov
Date: Tuesday, March 3, 2009 - 9:20 pm

While this is definitely the right approach, it requires completely new=20
infrastructure to disable IPv6 (including resolving update issues). So I=20
guess this is post-2.6.29 material.



From: David Miller
Date: Wednesday, March 4, 2009 - 4:11 am

From: Andrey Borzenkov <arvidjaar@gmail.com>

No, Brian's patches are is the only reasonable way to fix this
bug, even in 2.6.29

We not going to let the ipv6 module load disable hack live any
longer, sorry.

I'm going to apply and push out Brian's patches.
Previous thread: [net-next PATCH 1/2] PCI: Add PCI quirk to disable L0s ASPM state for 82575 and 82598 by Jeff Kirsher on Tuesday, March 3, 2009 - 7:03 pm. (6 messages)

Next thread: [PATCH 1/2] IPv6: add "disable" module parameter support to ipv6.ko by Brian Haley on Tuesday, March 3, 2009 - 7:37 pm. (3 messages)