diff options
| author | Xin Long <[email protected]> | 2017-11-07 16:33:08 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-11-10 14:39:53 +0900 |
| commit | dd9d598c6657e2d2eed4497ff2c5d744015201dc (patch) | |
| tree | 620a5a8cca9b60b135df65adeabacd8d53813ca6 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | c7947e4339b8a3b04f5d90c881f1ce8c05ad8cea (diff) | |
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 <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Acked-by: William Tu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions