[SCTP]: Remove sctp_add_cmd_sf wrapper bloat
With a was number of callsites sctp_add_cmd_sf wrapper bloats kernel by some amount. Due to unlikely tracking allyesconfig, with the initial result were around ~7kB (thus caught my attention) while a non-debug config produced only ~2.3kB effect. I (ij) proposed first a patch to uninline it but Vlad responded with a patch that removed the only sctp_add_cmd call which is wrapped by sctp_add_cmd_sf (I wasn't sure if I could do that). I did minor cleanup to Vlad's patch. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
419ae74ecc
commit
bc09dff198
@ -3135,12 +3135,8 @@ sctp_disposition_t sctp_sf_operr_notify(const struct sctp_endpoint *ep,
|
||||
if (!ev)
|
||||
goto nomem;
|
||||
|
||||
if (!sctp_add_cmd(commands, SCTP_CMD_EVENT_ULP,
|
||||
SCTP_ULPEVENT(ev))) {
|
||||
sctp_ulpevent_free(ev);
|
||||
goto nomem;
|
||||
}
|
||||
|
||||
sctp_add_cmd_sf(commands, SCTP_CMD_EVENT_ULP,
|
||||
SCTP_ULPEVENT(ev));
|
||||
sctp_add_cmd_sf(commands, SCTP_CMD_PROCESS_OPERR,
|
||||
SCTP_CHUNK(chunk));
|
||||
}
|
||||
|
Reference in New Issue
Block a user