]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Change defaults on cookie hmac selection
authorNeil Horman <nhorman@tuxdriver.com>
Fri, 14 Dec 2012 15:22:01 +0000 (15:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2012 01:14:38 +0000 (17:14 -0800)
commit27452640eb2bcb9597e090b5aa12eff98a4be19d
tree4f8c3c05432537f4048c05bfb337c7a0bd7965e8
parentb604cda06ff03b2db2349f63f6e76c9ef236326c
sctp: Change defaults on cookie hmac selection

Recently I posted commit 2dea3bd57d which made selection of the cookie hmac
algorithm selectable.  This is all well and good, but Linus noted that it
changes the default config:
http://marc.info/?l=linux-netdev&m=135536629004808&w=2

I've modified the sctp Kconfig file to reflect the recommended way of making
this choice, using the thermal driver example specified, and brought the
defaults back into line with the way they were prior to my origional patch

Also, on Linus' suggestion, re-adding ability to select default 'none' hmac
algorithm, so we don't needlessly bloat the kernel by forcing a non-none
default.  This also led me to note that we won't honor the default none
condition properly because of how sctp_net_init is encoded.  Fix that up as
well.

Tested by myself (allbeit fairly quickly).  All configuration combinations seems
to work soundly.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: David Miller <davem@davemloft.net>
CC: Linus Torvalds <torvalds@linux-foundation.org>
CC: Vlad Yasevich <vyasevich@gmail.com>
CC: linux-sctp@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/Kconfig
net/sctp/protocol.c