diff options
author | 2014-01-28 11:49:43 +0800 | |
---|---|---|
committer | 2014-01-27 20:38:26 -0800 | |
commit | c0c0c50ff7c3e331c90bab316d21f724fb9e1994 (patch) | |
tree | 8890196c79356a199374c1e54ef6b61b1043545b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | i40e: Add missing braces to i40e_dcb_need_reconfig() (diff) | |
download | linux-dev-c0c0c50ff7c3e331c90bab316d21f724fb9e1994.tar.xz linux-dev-c0c0c50ff7c3e331c90bab316d21f724fb9e1994.zip |
net: gre: use icmp_hdr() to get inner ip header
When dealing with icmp messages, the skb->data points the
ip header that triggered the sending of the icmp message.
In gre_cisco_err(), the parse_gre_header() is called, and the
iptunnel_pull_header() is called to pull the skb at the end of
the parse_gre_header(), so the skb->data doesn't point the
inner ip header.
Unfortunately, the ipgre_err still needs those ip addresses in
inner ip header to look up tunnel by ip_tunnel_lookup().
So just use icmp_hdr() to get inner ip header instead of skb->data.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions