datapath: Add compatibility code for inet_add_protocol().
authorJesse Gross <jesse@nicira.com>
Wed, 24 Nov 2010 06:35:15 +0000 (22:35 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:15 +0000 (17:10 -0800)
commit84a2398d1634ffe671d4a6511676802b762d6cd3
treeec725fbcacb87602db272a70c1d8a2d74db9c75a
parent83e3e75ba62705142ef0d5892a1fd2915c5e28c5
datapath: Add compatibility code for inet_add_protocol().

Kernels earlier than 2.6.32 did not mark struct net_protocol as const
in inet_add_protcol() and inet_del_protocol().  This provides compatibility
code to cast away the constness on these kernels so we can have them be
const on newer kernels.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/linux-2.6/Modules.mk
datapath/linux-2.6/compat-2.6/include/net/protocol.h [new file with mode: 0644]