diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:47:12 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:45 -0400 |
commit | 4d566063a799231b99d9a21128634ea78b89ab72 (patch) | |
tree | b1d55d0c266b27f2438aec5888abd30c02749e59 /drivers/net/sfc/rx.c | |
parent | 23d9e60b1ddc67ffedd77161ecff4895708088a4 (diff) |
sfc: Removed forced inlining of long functions
gcc will automatically inline static functions with only one caller, and
may inline other functions depending on the kernel configuration and size
of the intermediate code.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/rx.c')
-rw-r--r-- | drivers/net/sfc/rx.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/net/sfc/rx.c b/drivers/net/sfc/rx.c index 17aa81e66a89..fa1a62aacbae 100644 --- a/drivers/net/sfc/rx.c +++ b/drivers/net/sfc/rx.c | |||
@@ -212,8 +212,8 @@ void efx_lro_fini(struct net_lro_mgr *lro_mgr) | |||
212 | * and populates a struct efx_rx_buffer with the relevant | 212 | * and populates a struct efx_rx_buffer with the relevant |
213 | * information. Return a negative error code or 0 on success. | 213 | * information. Return a negative error code or 0 on success. |
214 | */ | 214 | */ |
215 | static inline int efx_init_rx_buffer_skb(struct efx_rx_queue *rx_queue, | 215 | static int efx_init_rx_buffer_skb(struct efx_rx_queue *rx_queue, |
216 | struct efx_rx_buffer *rx_buf) | 216 | struct efx_rx_buffer *rx_buf) |
217 | { | 217 | { |
218 | struct efx_nic *efx = rx_queue->efx; | 218 | struct efx_nic *efx = rx_queue->efx; |
219 | struct net_device *net_dev = efx->net_dev; | 219 | struct net_device *net_dev = efx->net_dev; |
@@ -252,8 +252,8 @@ static inline int efx_init_rx_buffer_skb(struct efx_rx_queue *rx_queue, | |||
252 | * and populates a struct efx_rx_buffer with the relevant | 252 | * and populates a struct efx_rx_buffer with the relevant |
253 | * information. Return a negative error code or 0 on success. | 253 | * information. Return a negative error code or 0 on success. |
254 | */ | 254 | */ |
255 | static inline int efx_init_rx_buffer_page(struct efx_rx_queue *rx_queue, | 255 | static int efx_init_rx_buffer_page(struct efx_rx_queue *rx_queue, |
256 | struct efx_rx_buffer *rx_buf) | 256 | struct efx_rx_buffer *rx_buf) |
257 | { | 257 | { |
258 | struct efx_nic *efx = rx_queue->efx; | 258 | struct efx_nic *efx = rx_queue->efx; |
259 | int bytes, space, offset; | 259 | int bytes, space, offset; |
@@ -319,8 +319,8 @@ static inline int efx_init_rx_buffer_page(struct efx_rx_queue *rx_queue, | |||
319 | * and populates a struct efx_rx_buffer with the relevant | 319 | * and populates a struct efx_rx_buffer with the relevant |
320 | * information. | 320 | * information. |
321 | */ | 321 | */ |
322 | static inline int efx_init_rx_buffer(struct efx_rx_queue *rx_queue, | 322 | static int efx_init_rx_buffer(struct efx_rx_queue *rx_queue, |
323 | struct efx_rx_buffer *new_rx_buf) | 323 | struct efx_rx_buffer *new_rx_buf) |
324 | { | 324 | { |
325 | int rc = 0; | 325 | int rc = 0; |
326 | 326 | ||
@@ -340,8 +340,8 @@ static inline int efx_init_rx_buffer(struct efx_rx_queue *rx_queue, | |||
340 | return rc; | 340 | return rc; |
341 | } | 341 | } |
342 | 342 | ||
343 | static inline void efx_unmap_rx_buffer(struct efx_nic *efx, | 343 | static void efx_unmap_rx_buffer(struct efx_nic *efx, |
344 | struct efx_rx_buffer *rx_buf) | 344 | struct efx_rx_buffer *rx_buf) |
345 | { | 345 | { |
346 | if (rx_buf->page) { | 346 | if (rx_buf->page) { |
347 | EFX_BUG_ON_PARANOID(rx_buf->skb); | 347 | EFX_BUG_ON_PARANOID(rx_buf->skb); |
@@ -357,8 +357,8 @@ static inline void efx_unmap_rx_buffer(struct efx_nic *efx, | |||
357 | } | 357 | } |
358 | } | 358 | } |
359 | 359 | ||
360 | static inline void efx_free_rx_buffer(struct efx_nic *efx, | 360 | static void efx_free_rx_buffer(struct efx_nic *efx, |
361 | struct efx_rx_buffer *rx_buf) | 361 | struct efx_rx_buffer *rx_buf) |
362 | { | 362 | { |
363 | if (rx_buf->page) { | 363 | if (rx_buf->page) { |
364 | __free_pages(rx_buf->page, efx->rx_buffer_order); | 364 | __free_pages(rx_buf->page, efx->rx_buffer_order); |
@@ -369,8 +369,8 @@ static inline void efx_free_rx_buffer(struct efx_nic *efx, | |||
369 | } | 369 | } |
370 | } | 370 | } |
371 | 371 | ||
372 | static inline void efx_fini_rx_buffer(struct efx_rx_queue *rx_queue, | 372 | static void efx_fini_rx_buffer(struct efx_rx_queue *rx_queue, |
373 | struct efx_rx_buffer *rx_buf) | 373 | struct efx_rx_buffer *rx_buf) |
374 | { | 374 | { |
375 | efx_unmap_rx_buffer(rx_queue->efx, rx_buf); | 375 | efx_unmap_rx_buffer(rx_queue->efx, rx_buf); |
376 | efx_free_rx_buffer(rx_queue->efx, rx_buf); | 376 | efx_free_rx_buffer(rx_queue->efx, rx_buf); |
@@ -506,10 +506,10 @@ void efx_rx_work(struct work_struct *data) | |||
506 | efx_schedule_slow_fill(rx_queue, 1); | 506 | efx_schedule_slow_fill(rx_queue, 1); |
507 | } | 507 | } |
508 | 508 | ||
509 | static inline void efx_rx_packet__check_len(struct efx_rx_queue *rx_queue, | 509 | static void efx_rx_packet__check_len(struct efx_rx_queue *rx_queue, |
510 | struct efx_rx_buffer *rx_buf, | 510 | struct efx_rx_buffer *rx_buf, |
511 | int len, bool *discard, | 511 | int len, bool *discard, |
512 | bool *leak_packet) | 512 | bool *leak_packet) |
513 | { | 513 | { |
514 | struct efx_nic *efx = rx_queue->efx; | 514 | struct efx_nic *efx = rx_queue->efx; |
515 | unsigned max_len = rx_buf->len - efx->type->rx_buffer_padding; | 515 | unsigned max_len = rx_buf->len - efx->type->rx_buffer_padding; |
@@ -546,8 +546,8 @@ static inline void efx_rx_packet__check_len(struct efx_rx_queue *rx_queue, | |||
546 | * Handles driverlink veto, and passes the fragment up via | 546 | * Handles driverlink veto, and passes the fragment up via |
547 | * the appropriate LRO method | 547 | * the appropriate LRO method |
548 | */ | 548 | */ |
549 | static inline void efx_rx_packet_lro(struct efx_channel *channel, | 549 | static void efx_rx_packet_lro(struct efx_channel *channel, |
550 | struct efx_rx_buffer *rx_buf) | 550 | struct efx_rx_buffer *rx_buf) |
551 | { | 551 | { |
552 | struct net_lro_mgr *lro_mgr = &channel->lro_mgr; | 552 | struct net_lro_mgr *lro_mgr = &channel->lro_mgr; |
553 | void *priv = channel; | 553 | void *priv = channel; |
@@ -574,9 +574,9 @@ static inline void efx_rx_packet_lro(struct efx_channel *channel, | |||
574 | } | 574 | } |
575 | 575 | ||
576 | /* Allocate and construct an SKB around a struct page.*/ | 576 | /* Allocate and construct an SKB around a struct page.*/ |
577 | static inline struct sk_buff *efx_rx_mk_skb(struct efx_rx_buffer *rx_buf, | 577 | static struct sk_buff *efx_rx_mk_skb(struct efx_rx_buffer *rx_buf, |
578 | struct efx_nic *efx, | 578 | struct efx_nic *efx, |
579 | int hdr_len) | 579 | int hdr_len) |
580 | { | 580 | { |
581 | struct sk_buff *skb; | 581 | struct sk_buff *skb; |
582 | 582 | ||