On Thu, Feb 11, 2016 at 07:57:05PM +0000, Brian Russell wrote: > Support encap/decap of Network Service Header (NSH) as defined in > https://tools.ietf.org/html/draft-ietf-sfc-nsh-01 > > Includes support for Type 1 and Type 2 metadata and a simple registration > for listeners to see decapsulated packets based on the Type/Class. > > Signed-off-by: Brian Russell <bruss...@brocade.com> ... > +int nsh_register_listener(struct nsh_listener *listener) > +{ > + if (listener->max_ctx_hdrs > limit_ctx_hdrs) > + return -ENOMEM; > + > + mutex_lock(&nsh_listener_mutex); > + list_add(&listener->list, &nsh_listeners); > + mutex_unlock(&nsh_listener_mutex); > + return 0; > +} > +EXPORT_SYMBOL(nsh_register_listener); > +EXPORT_SYMBOL(nsh_unregister_listener);
looks like this patch doesn't actually implement the protocol, but rather provides a placeholder for out of tree modules?