diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-08-17 02:57:56 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-08-17 03:01:08 -0400 |
| commit | a22ddff8bedfe33eeb1330bbb7ef1fbe007a42c4 (patch) | |
| tree | 61a2eb7fa62f5af10c2b913ca429e6b068b0eb2d /include/linux/netdevice.h | |
| parent | 20d5a540e55a29daeef12706f9ee73baf5641c16 (diff) | |
| parent | d9875690d9b89a866022ff49e3fcea892345ad92 (diff) | |
Merge tag 'v3.6-rc2' into drm-intel-next
Backmerge Linux 3.6-rc2 to resolve a few funny conflicts before we put
even more madness on top:
- drivers/gpu/drm/i915/i915_irq.c: Just a spurious WARN removed in
-fixes, that has been changed in a variable-rename in -next, too.
- drivers/gpu/drm/i915/intel_ringbuffer.c: -next remove scratch_addr
(since all their users have been extracted in another fucntion),
-fixes added another user for a hw workaroudn.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/netdevice.h')
| -rw-r--r-- | include/linux/netdevice.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index d94cb1431519..a9db4f33407f 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1046,10 +1046,9 @@ struct net_device { | |||
| 1046 | */ | 1046 | */ |
| 1047 | char name[IFNAMSIZ]; | 1047 | char name[IFNAMSIZ]; |
| 1048 | 1048 | ||
| 1049 | struct pm_qos_request pm_qos_req; | 1049 | /* device name hash chain, please keep it close to name[] */ |
| 1050 | |||
| 1051 | /* device name hash chain */ | ||
| 1052 | struct hlist_node name_hlist; | 1050 | struct hlist_node name_hlist; |
| 1051 | |||
| 1053 | /* snmp alias */ | 1052 | /* snmp alias */ |
| 1054 | char *ifalias; | 1053 | char *ifalias; |
| 1055 | 1054 | ||
| @@ -1301,6 +1300,8 @@ struct net_device { | |||
| 1301 | /* for setting kernel sock attribute on TCP connection setup */ | 1300 | /* for setting kernel sock attribute on TCP connection setup */ |
| 1302 | #define GSO_MAX_SIZE 65536 | 1301 | #define GSO_MAX_SIZE 65536 |
| 1303 | unsigned int gso_max_size; | 1302 | unsigned int gso_max_size; |
| 1303 | #define GSO_MAX_SEGS 65535 | ||
| 1304 | u16 gso_max_segs; | ||
| 1304 | 1305 | ||
| 1305 | #ifdef CONFIG_DCB | 1306 | #ifdef CONFIG_DCB |
| 1306 | /* Data Center Bridging netlink ops */ | 1307 | /* Data Center Bridging netlink ops */ |
| @@ -1322,6 +1323,8 @@ struct net_device { | |||
| 1322 | 1323 | ||
| 1323 | /* group the device belongs to */ | 1324 | /* group the device belongs to */ |
| 1324 | int group; | 1325 | int group; |
| 1326 | |||
| 1327 | struct pm_qos_request pm_qos_req; | ||
| 1325 | }; | 1328 | }; |
| 1326 | #define to_net_dev(d) container_of(d, struct net_device, dev) | 1329 | #define to_net_dev(d) container_of(d, struct net_device, dev) |
| 1327 | 1330 | ||
| @@ -1626,6 +1629,7 @@ extern int dev_alloc_name(struct net_device *dev, const char *name); | |||
| 1626 | extern int dev_open(struct net_device *dev); | 1629 | extern int dev_open(struct net_device *dev); |
| 1627 | extern int dev_close(struct net_device *dev); | 1630 | extern int dev_close(struct net_device *dev); |
| 1628 | extern void dev_disable_lro(struct net_device *dev); | 1631 | extern void dev_disable_lro(struct net_device *dev); |
| 1632 | extern int dev_loopback_xmit(struct sk_buff *newskb); | ||
| 1629 | extern int dev_queue_xmit(struct sk_buff *skb); | 1633 | extern int dev_queue_xmit(struct sk_buff *skb); |
| 1630 | extern int register_netdevice(struct net_device *dev); | 1634 | extern int register_netdevice(struct net_device *dev); |
| 1631 | extern void unregister_netdevice_queue(struct net_device *dev, | 1635 | extern void unregister_netdevice_queue(struct net_device *dev, |
| @@ -2108,7 +2112,12 @@ static inline int netif_set_real_num_rx_queues(struct net_device *dev, | |||
| 2108 | static inline int netif_copy_real_num_queues(struct net_device *to_dev, | 2112 | static inline int netif_copy_real_num_queues(struct net_device *to_dev, |
| 2109 | const struct net_device *from_dev) | 2113 | const struct net_device *from_dev) |
| 2110 | { | 2114 | { |
| 2111 | netif_set_real_num_tx_queues(to_dev, from_dev->real_num_tx_queues); | 2115 | int err; |
| 2116 | |||
| 2117 | err = netif_set_real_num_tx_queues(to_dev, | ||
| 2118 | from_dev->real_num_tx_queues); | ||
| 2119 | if (err) | ||
| 2120 | return err; | ||
| 2112 | #ifdef CONFIG_RPS | 2121 | #ifdef CONFIG_RPS |
| 2113 | return netif_set_real_num_rx_queues(to_dev, | 2122 | return netif_set_real_num_rx_queues(to_dev, |
| 2114 | from_dev->real_num_rx_queues); | 2123 | from_dev->real_num_rx_queues); |
| @@ -2117,6 +2126,9 @@ static inline int netif_copy_real_num_queues(struct net_device *to_dev, | |||
| 2117 | #endif | 2126 | #endif |
| 2118 | } | 2127 | } |
| 2119 | 2128 | ||
| 2129 | #define DEFAULT_MAX_NUM_RSS_QUEUES (8) | ||
| 2130 | extern int netif_get_num_default_rss_queues(void); | ||
| 2131 | |||
| 2120 | /* Use this variant when it is known for sure that it | 2132 | /* Use this variant when it is known for sure that it |
| 2121 | * is executing from hardware interrupt context or with hardware interrupts | 2133 | * is executing from hardware interrupt context or with hardware interrupts |
| 2122 | * disabled. | 2134 | * disabled. |
