From: Alexander Duyck Date: Wed, 2 Jun 2010 12:24:37 +0000 (+0000) Subject: skbuff: add check for non-linear to warn_if_lro and needs_linearize X-Git-Tag: v2.6.36-rc1~571^2~650 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b78462ebc6a4ef9074aa80abebcdd470dc5f0ce0;p=pandora-kernel.git skbuff: add check for non-linear to warn_if_lro and needs_linearize We can avoid an unecessary cache miss by checking if the skb is non-linear before accessing gso_size/gso_type in skb_warn_if_lro, the same can also be done to avoid a cache miss on nr_frags if data_len is 0. Signed-off-by: Alexander Duyck Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed