aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/neterion
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-11-07 16:33:08 +0800
committerDavid S. Miller <davem@davemloft.net>2017-11-10 14:39:53 +0900
commitdd9d598c6657e2d2eed4497ff2c5d744015201dc (patch)
tree620a5a8cca9b60b135df65adeabacd8d53813ca6 /drivers/net/ethernet/neterion
parentMerge branch 'tcp-ns-rmem-wmem' (diff)
downloadlinux-dev-dd9d598c6657e2d2eed4497ff2c5d744015201dc.tar.xz
linux-dev-dd9d598c6657e2d2eed4497ff2c5d744015201dc.zip
ip_gre: add the support for i/o_flags update via netlink
Now ip_gre is using ip_tunnel_changelink to update it's properties, but ip_tunnel_changelink in ip_tunnel doesn't update i/o_flags as a common function. o_flags updates would cause that tunnel->tun_hlen / hlen and dev->mtu / needed_headroom need to be recalculated, and dev->(hw_)features need to be updated as well. Therefore, we can't just add the update into ip_tunnel_update called in ip_tunnel_changelink, and it's also better not to touch ip_tunnel codes. This patch updates i/o_flags and calls ipgre_link_update to recalculate these gre properties after ip_tunnel_changelink does the common update. Note that since ipgre_link_update doesn't know the lower dev, it will update gre->hlen, dev->mtu and dev->needed_headroom with the value of 'new tun_hlen - old tun_hlen'. In this way, we can avoid many redundant codes, unlike ip6_gre. Reported-by: Jianlin Shi <jishi@redhat.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: William Tu <u9012063@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion')
0 files changed, 0 insertions, 0 deletions