projects
/
~tnikolova
/
compat
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
312cfba
)
compat: Add netdev_tx_reset_queue and NETIF_F_LOOPBACK
author
Vladimir Sokolovsky
<vlad@mellanox.com>
Sun, 5 Aug 2012 18:19:52 +0000
(21:19 +0300)
committer
Vladimir Sokolovsky
<vlad@mellanox.com>
Sun, 5 Aug 2012 18:21:37 +0000
(21:21 +0300)
Required by mlx4_en
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
include/linux/compat-3.3.h
patch
|
blob
|
history
diff --git
a/include/linux/compat-3.3.h
b/include/linux/compat-3.3.h
index
45a078a
..
0c8fd08
100644
(file)
--- a/
include/linux/compat-3.3.h
+++ b/
include/linux/compat-3.3.h
@@
-82,6
+82,16
@@
static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
{
}
+static inline void netdev_tx_reset_queue(struct netdev_queue *q)
+{
+#ifdef CONFIG_BQL
+ clear_bit(__QUEUE_STATE_STACK_XOFF, &q->state);
+ dql_reset(&q->dql);
+#endif
+}
+
+#define NETIF_F_LOOPBACK (1 << 31) /* Enable loopback */
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)) */
#endif /* LINUX_3_3_COMPAT_H */