tun: fix inability to set offloads after disabling them via ethtool
authorYaroslav Isakov <yaroslav.isakov@gmail.com>
Thu, 16 Mar 2017 19:44:10 +0000 (22:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2017 22:30:59 +0000 (15:30 -0700)
commit09050957fae896e001498af1aa35c446a11cb47d
tree0a76553edb3a05acb0c835d91ade954f3b64b6fa
parent7df9c24625b9981779afb8fcdbe2bb4765e61147
tun: fix inability to set offloads after disabling them via ethtool

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c