Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: add MODULE_ALIAS_NET_PF_PROTO_NAME

The MODULE_ALAIS_NET_PF macro set is missing a variant that allows for the
appending of an arbitrary string to the net-pf-<x>-proto-<y> base. while
MODULE_ALIAS_NET_PF_PROTO_NAME_TYPE allows an appending of a numerical type, we
need to be able to append a generic string to support generic netlink families
that have neither a fix numberical protocol nor type number

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Neil Horman and committed by
David S. Miller
2033e9bf 20571d88

+3
+3
include/linux/net.h
··· 313 313 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ 314 314 "-type-" __stringify(type)) 315 315 316 + #define MODULE_ALIAS_NET_PF_PROTO_NAME(pf, proto, name) \ 317 + MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ 318 + name) 316 319 #endif /* __KERNEL__ */ 317 320 #endif /* _LINUX_NET_H */