Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2015 17:42:13 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r279014 - stable/10/sys/ofed/drivers/net/mlx4
Message-ID:  <201502191742.t1JHgDQt094187@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Feb 19 17:42:12 2015
New Revision: 279014
URL: https://svnweb.freebsd.org/changeset/base/279014

Log:
  MFC r278856:
  The "frag_info" pointer is already pointing to an array index.
  Don't index twice.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/10/sys/ofed/drivers/net/mlx4/en_rx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ofed/drivers/net/mlx4/en_rx.c
==============================================================================
--- stable/10/sys/ofed/drivers/net/mlx4/en_rx.c	Thu Feb 19 17:03:13 2015	(r279013)
+++ stable/10/sys/ofed/drivers/net/mlx4/en_rx.c	Thu Feb 19 17:42:12 2015	(r279014)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502191742.t1JHgDQt094187>