Message ID | CADS+iDXrkp6vrj9dAYQqnGPm+-RYizYz_iEW0LEkqdXsxBfV2Q@mail.gmail.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
This is not how you resubmit a patch. You must make a fresh patch posting to the mailing list, provide the commit message and patch as inline text, and not do it as a reply to another posting. Thank you.
Sorry for this mess! I'll do it properly this time, I hope :) 2017-03-16 22:12 GMT+03:00 David Miller <davem@davemloft.net>: > > This is not how you resubmit a patch. > > You must make a fresh patch posting to the mailing list, provide the > commit message and patch as inline text, and not do it as a reply to > another posting. > > Thank you.
From 12a5079ef6172c32ac19b606310db151c7ca3e5d Mon Sep 17 00:00:00 2001 From: Yaroslav Isakov <yaroslav.isakov@gmail.com> Date: Thu, 16 Mar 2017 21:08:37 +0300 Subject: [PATCH] tun: fix inability to set offloads after disabling them via ethtool From: Yaroslav Isakov <yaroslav.isakov@gmail.com> Added missing logic in tun driver, which prevents apps to set offloads using tun ioctl, if offloads were previously disabled via ethtool Signed-off-by: Yaroslav Isakov <yaroslav.isakov@gmail.com> --- drivers/net/tun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 34cc3c5..cc88cd7 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1931,6 +1931,8 @@ static int set_offload(struct tun_struct *tun, unsigned long arg) return -EINVAL; tun->set_features = features; + tun->dev->wanted_features &= ~TUN_USER_FEATURES; + tun->dev->wanted_features |= features; netdev_update_features(tun->dev); return 0; -- 2.10.2