aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xilinx/xilinx_emaclite.c
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2013-06-03 22:11:16 +0000
committerDavid S. Miller <davem@davemloft.net>2013-06-04 17:37:59 -0700
commit15dd16c233b6d5ceea3a00f18d7c42902d0ac6b6 (patch)
treeff130afebb3c4023eccfed777fc8913164482119 /drivers/net/ethernet/xilinx/xilinx_emaclite.c
parentnetpoll: fix position of network header (diff)
downloadlinux-dev-15dd16c233b6d5ceea3a00f18d7c42902d0ac6b6.tar.xz
linux-dev-15dd16c233b6d5ceea3a00f18d7c42902d0ac6b6.zip
cxgb3: Correct comparisons and calculations using skb->tail and skb-transport_header
This corrects an regression introduced by "net: Use 16bits for *_headers fields of struct skbuff" when NET_SKBUFF_DATA_USES_OFFSET is not set. In that case skb->tail will be a pointer whereas skb->transport_header will be an offset from head. This is corrected by using wrappers that ensure that comparisons and calculations are always made using pointers. Cc: Simon Horman <horms@verge.net.au> Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_emaclite.c')
0 files changed, 0 insertions, 0 deletions