Date: Mon, 16 Feb 2015 17:06:00 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278856 - head/sys/ofed/drivers/net/mlx4 Message-ID: <201502161706.t1GH60ps030710@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Mon Feb 16 17:05:59 2015 New Revision: 278856 URL: https://svnweb.freebsd.org/changeset/base/278856 Log: The "frag_info" pointer is already pointing to an array index. Don't index twice. Sponsored by: Mellanox Technologies MFC after: 3 days Modified: head/sys/ofed/drivers/net/mlx4/en_rx.c Modified: head/sys/ofed/drivers/net/mlx4/en_rx.c ============================================================================== --- head/sys/ofed/drivers/net/mlx4/en_rx.c Mon Feb 16 16:37:59 2015 (r278855) +++ head/sys/ofed/drivers/net/mlx4/en_rx.c Mon Feb 16 17:05:59 2015 (r278856) @@ -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?201502161706.t1GH60ps030710>