Lines Matching refs:ss

158 nfnetlink_find_client(u16 type, const struct nfnetlink_subsystem *ss)  in nfnetlink_find_client()  argument
162 if (cb_id >= ss->cb_count) in nfnetlink_find_client()
165 return &ss->cb[cb_id]; in nfnetlink_find_client()
221 const struct nfnetlink_subsystem *ss; in nfnetlink_rcv_msg() local
232 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg()
233 if (!ss) { in nfnetlink_rcv_msg()
238 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg()
239 if (!ss) in nfnetlink_rcv_msg()
247 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_msg()
270 if (ss->cb[cb_id].attr_count > NFNL_MAX_ATTR_COUNT) { in nfnetlink_rcv_msg()
275 err = nla_parse_deprecated(cda, ss->cb[cb_id].attr_count, in nfnetlink_rcv_msg()
277 ss->cb[cb_id].policy, extack); in nfnetlink_rcv_msg()
296 if (nfnl_dereference_protected(subsys_id) != ss || in nfnetlink_rcv_msg()
297 nfnetlink_find_client(type, ss) != nc) { in nfnetlink_rcv_msg()
376 const struct nfnetlink_subsystem *ss; in nfnetlink_rcv_batch() local
393 ss = nfnl_dereference_protected(subsys_id); in nfnetlink_rcv_batch()
394 if (!ss) { in nfnetlink_rcv_batch()
399 ss = nfnl_dereference_protected(subsys_id); in nfnetlink_rcv_batch()
400 if (!ss) in nfnetlink_rcv_batch()
409 if (!ss->valid_genid || !ss->commit || !ss->abort) { in nfnetlink_rcv_batch()
415 if (!try_module_get(ss->owner)) { in nfnetlink_rcv_batch()
421 if (!ss->valid_genid(net, genid)) { in nfnetlink_rcv_batch()
422 module_put(ss->owner); in nfnetlink_rcv_batch()
480 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_batch()
507 if (ss->cb[cb_id].attr_count > NFNL_MAX_ATTR_COUNT) { in nfnetlink_rcv_batch()
513 ss->cb[cb_id].attr_count, in nfnetlink_rcv_batch()
515 ss->cb[cb_id].policy, NULL); in nfnetlink_rcv_batch()
563 ss->abort(net, oskb, NFNL_ABORT_AUTOLOAD); in nfnetlink_rcv_batch()
566 module_put(ss->owner); in nfnetlink_rcv_batch()
569 err = ss->commit(net, oskb); in nfnetlink_rcv_batch()
574 ss->abort(net, oskb, NFNL_ABORT_NONE); in nfnetlink_rcv_batch()
585 err = ss->abort(net, oskb, abort_action); in nfnetlink_rcv_batch()
589 module_put(ss->owner); in nfnetlink_rcv_batch()
597 module_put(ss->owner); in nfnetlink_rcv_batch()
702 const struct nfnetlink_subsystem *ss; in nfnetlink_bind() local
711 ss = nfnetlink_get_subsys(type << 8); in nfnetlink_bind()
713 if (!ss) in nfnetlink_bind()