[6/6] gtp: update for Linux > 4.2+, set NO_QUEUE flag on gtp device
diff mbox

Message ID 1446118742-22809-7-git-send-email-aschultz@tpip.net
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Andreas Schultz Oct. 29, 2015, 11:39 a.m. UTC
Signed-off-by: Andreas Schultz <aschultz@tpip.net>
---
 gtp.c | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox

diff --git a/gtp.c b/gtp.c
index 7fa9c38..7c72eb0 100644
--- a/gtp.c
+++ b/gtp.c
@@ -718,6 +718,8 @@  static const struct net_device_ops gtp_netdev_ops = {
 
 static void gtp_link_setup(struct net_device *dev)
 {
+	dev->priv_flags		|= IFF_NO_QUEUE;
+
 	dev->netdev_ops		= &gtp_netdev_ops;
 	dev->destructor		= free_netdev;
 }