diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fec.h | 21 | ||||
| -rw-r--r-- | include/linux/netdevice.h | 16 | ||||
| -rw-r--r-- | include/linux/netfilter/x_tables.h | 2 |
3 files changed, 34 insertions, 5 deletions
diff --git a/include/linux/fec.h b/include/linux/fec.h new file mode 100644 index 000000000000..5d3523d8dd0c --- /dev/null +++ b/include/linux/fec.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* include/linux/fec.h | ||
| 2 | * | ||
| 3 | * Copyright (c) 2009 Orex Computed Radiography | ||
| 4 | * Baruch Siach <baruch@tkos.co.il> | ||
| 5 | * | ||
| 6 | * Header file for the FEC platform data | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License version 2 as | ||
| 10 | * published by the Free Software Foundation. | ||
| 11 | */ | ||
| 12 | #ifndef __LINUX_FEC_H__ | ||
| 13 | #define __LINUX_FEC_H__ | ||
| 14 | |||
| 15 | #include <linux/phy.h> | ||
| 16 | |||
| 17 | struct fec_platform_data { | ||
| 18 | phy_interface_t phy; | ||
| 19 | }; | ||
| 20 | |||
| 21 | #endif | ||
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index a1bff6518166..40291f375024 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1407,17 +1407,25 @@ struct softnet_data { | |||
| 1407 | struct softnet_data *rps_ipi_next; | 1407 | struct softnet_data *rps_ipi_next; |
| 1408 | unsigned int cpu; | 1408 | unsigned int cpu; |
| 1409 | unsigned int input_queue_head; | 1409 | unsigned int input_queue_head; |
| 1410 | unsigned int input_queue_tail; | ||
| 1410 | #endif | 1411 | #endif |
| 1411 | unsigned dropped; | 1412 | unsigned dropped; |
| 1412 | struct sk_buff_head input_pkt_queue; | 1413 | struct sk_buff_head input_pkt_queue; |
| 1413 | struct napi_struct backlog; | 1414 | struct napi_struct backlog; |
| 1414 | }; | 1415 | }; |
| 1415 | 1416 | ||
| 1416 | static inline void input_queue_head_add(struct softnet_data *sd, | 1417 | static inline void input_queue_head_incr(struct softnet_data *sd) |
| 1417 | unsigned int len) | ||
| 1418 | { | 1418 | { |
| 1419 | #ifdef CONFIG_RPS | 1419 | #ifdef CONFIG_RPS |
| 1420 | sd->input_queue_head += len; | 1420 | sd->input_queue_head++; |
| 1421 | #endif | ||
| 1422 | } | ||
| 1423 | |||
| 1424 | static inline void input_queue_tail_incr_save(struct softnet_data *sd, | ||
| 1425 | unsigned int *qtail) | ||
| 1426 | { | ||
| 1427 | #ifdef CONFIG_RPS | ||
| 1428 | *qtail = ++sd->input_queue_tail; | ||
| 1421 | #endif | 1429 | #endif |
| 1422 | } | 1430 | } |
| 1423 | 1431 | ||
| @@ -2326,7 +2334,7 @@ do { \ | |||
| 2326 | #define netif_vdbg(priv, type, dev, format, args...) \ | 2334 | #define netif_vdbg(priv, type, dev, format, args...) \ |
| 2327 | ({ \ | 2335 | ({ \ |
| 2328 | if (0) \ | 2336 | if (0) \ |
| 2329 | netif_printk(KERN_DEBUG, dev, format, ##args); \ | 2337 | netif_printk(priv, type, KERN_DEBUG, dev, format, ##args); \ |
| 2330 | 0; \ | 2338 | 0; \ |
| 2331 | }) | 2339 | }) |
| 2332 | #endif | 2340 | #endif |
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index c2ee5d8550cf..c00cc0c4d0b7 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h | |||
| @@ -333,7 +333,7 @@ struct xt_target { | |||
| 333 | /* Called when user tries to insert an entry of this type: | 333 | /* Called when user tries to insert an entry of this type: |
| 334 | hook_mask is a bitmask of hooks from which it can be | 334 | hook_mask is a bitmask of hooks from which it can be |
| 335 | called. */ | 335 | called. */ |
| 336 | /* Should return true or false, or an error code (-Exxxx). */ | 336 | /* Should return 0 on success or an error code otherwise (-Exxxx). */ |
| 337 | int (*checkentry)(const struct xt_tgchk_param *); | 337 | int (*checkentry)(const struct xt_tgchk_param *); |
| 338 | 338 | ||
| 339 | /* Called when entry of this type deleted. */ | 339 | /* Called when entry of this type deleted. */ |
