svn commit: r279015 - stable/9/sys/ofed/drivers/net/mlx4
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Feb 19 17:47:43 UTC 2015
Author: hselasky
Date: Thu Feb 19 17:47:42 2015
New Revision: 279015
URL: https://svnweb.freebsd.org/changeset/base/279015
Log:
MFC r278856:
The "frag_info" pointer is already pointing to an array index.
Don't index twice.
Sponsored by: Mellanox Technologies
Modified:
stable/9/sys/ofed/drivers/net/mlx4/en_rx.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/ofed/drivers/net/mlx4/en_rx.c
==============================================================================
--- stable/9/sys/ofed/drivers/net/mlx4/en_rx.c Thu Feb 19 17:42:12 2015 (r279014)
+++ stable/9/sys/ofed/drivers/net/mlx4/en_rx.c Thu Feb 19 17:47:42 2015 (r279015)
@@ -492,7 +492,7 @@ static int mlx4_en_complete_rx_desc(stru
if (nr)
mb->m_next = mb_list[nr];
mb = mb_list[nr];
- mb->m_len = frag_info[nr].frag_size;
+ mb->m_len = frag_info->frag_size;
dma = be64_to_cpu(rx_desc->data[nr].addr);
/* Allocate a replacement page */
More information about the svn-src-stable-9
mailing list