[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1412224524.16704.75.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Wed, 01 Oct 2014 21:35:24 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Or Gerlitz <gerlitz.or@...il.com>
Cc: Alexei Starovoitov <ast@...mgrid.com>,
"David S. Miller" <davem@...emloft.net>,
Jesper Dangaard Brouer <brouer@...hat.com>,
Eric Dumazet <edumazet@...gle.com>,
John Fastabend <john.r.fastabend@...el.com>,
Linux Netdev List <netdev@...r.kernel.org>,
Amir Vadai <amirv@...lanox.com>,
Or Gerlitz <or.gerlitz@...il.com>
Subject: Re: [PATCH v2 net-next] mlx4: optimize xmit path
On Sun, 2014-09-28 at 21:19 -0700, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@...gle.com>
...
> 6) mdev->mr.key stored in ring->mr_key to also avoid bswap() and access
> to cold cache line.
>
> ring->bf.offset ^= ring->bf.buf_size;
> } else {
> + tx_desc->ctrl.vlan_tag = cpu_to_be16(vlan_tag);
> + tx_desc->ctrl.ins_vlan = MLX4_WQE_CTRL_INS_VLAN *
> + !!vlan_tx_tag_present(skb);
> + tx_desc->ctrl.fence_size = real_size;
> +
> /* Ensure new descriptor hits memory
> * before setting ownership of this descriptor to HW
> */
Sorry, there is a missing replacement of
iowrite32be(ring->doorbell_qpn,
ring->bf.uar->map + MLX4_SEND_DOORBELL);
by iowrite32(ring->doorbell_qpn,
ring->bf.uar->map + MLX4_SEND_DOORBELL);
Since doorbel_qpn was changed to a __be32 and setup in
mlx4_en_activate_tx_ring()
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists