aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jiri Benc <jbenc@redhat.com> 2016-05-03 17:10:06 +0200
committerGravatar David S. Miller <davem@davemloft.net> 2016-05-04 14:11:31 -0400
commit00b2034029840ddad255352c46db0ae21342ce56 (patch)
tree043bf1c60ccdf86257a34c61b629726247a9d1c8 /Makefile
parentMerge branch 'mlx5-sriov-updates' (diff)
downloadlinux-00b2034029840ddad255352c46db0ae21342ce56.tar.gz
linux-00b2034029840ddad255352c46db0ae21342ce56.tar.bz2
linux-00b2034029840ddad255352c46db0ae21342ce56.zip
gre: remove superfluous pskb_may_pull
The call to gre_parse_header is either followed by iptunnel_pull_header, or in the case of ICMP error path, the actual header is not accessed at all. In the first case, iptunnel_pull_header will call pskb_may_pull anyway and it's pointless to do it twice. The only difference is what call will fail with what error code but the net effect is still the same in all call sites. In the second case, pskb_may_pull is pointless, as skb->data is at the outer IP header and not at the GRE header. Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions