Skip to content

Commit 397ff16

Browse files
Krzysztof MazurDavid Woodhouse
authored andcommitted
pppoatm: do not inline pppoatm_may_send()
The pppoatm_may_send() is quite heavy and it's called three times in pppoatm_send() and inlining costs more than 200 bytes of code (more than 10% of total pppoatm driver code size). add/remove: 1/0 grow/shrink: 0/1 up/down: 132/-367 (-235) function old new delta pppoatm_may_send - 132 +132 pppoatm_send 900 533 -367 Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 071d939 commit 397ff16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/atm/pppoatm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static void pppoatm_push(struct atm_vcc *atmvcc, struct sk_buff *skb)
214214
ppp_input_error(&pvcc->chan, 0);
215215
}
216216

217-
static inline int pppoatm_may_send(struct pppoatm_vcc *pvcc, int size)
217+
static int pppoatm_may_send(struct pppoatm_vcc *pvcc, int size)
218218
{
219219
/*
220220
* It's not clear that we need to bother with using atm_may_send()

0 commit comments

Comments
 (0)