]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add comment that early_demux can change via sysctl
authorDavid Ahern <dsahern@gmail.com>
Mon, 28 Aug 2017 22:14:20 +0000 (15:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 22:17:29 +0000 (15:17 -0700)
commit251242ea17305b18495e08be078865aa0cba96ef
treef9e285520f67cb9a7295a20c4da65798e098bb06
parentdd593c4a307773e41eb2712f02f7e42800fcb82d
net: Add comment that early_demux can change via sysctl

Twice patches trying to constify inet{6}_protocol have been reverted:
6392f4716e4c ("Revert "ipv6: constify inet6_protocol structures"") to
revert 480693b1e6cb5 and then 029d2cff572c7 ("Revert "ipv4: make
net_protocol const"") to revert c4b266099ea1.

Add a comment that the structures can not be const because the
early_demux field can change based on a sysctl.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c