]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vmxnet3: introduce command to register memory region
authorShrikrishna Khare <skhare@vmware.com>
Thu, 16 Jun 2016 17:51:58 +0000 (10:51 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 21:30:08 +0000 (13:30 -0800)
commit3ad4c0d7200bcf772af95e95eaf3542bff1dd929
treef92f73c94c04e2dce26e5921d6aecc0b95cc8bac
parent5c5c399134bfecee1ee2f25dc7f72a68df4984a2
vmxnet3: introduce command to register memory region

Orabug: 25639933

In vmxnet3 version 3, the emulation added support for the vmxnet3 driver
to communicate information about the memory regions the driver will use
for rx/tx buffers. The driver can also indicate which rx/tx queue the
memory region is applicable for. If this information is communicated
to the emulation, the emulation will always keep these memory regions
mapped, thereby avoiding the mapping/unmapping overhead for every packet.

Currently, Linux vmxnet3 driver does not leverage this capability. The
feasibility of using this approach for the Linux vmxnet3 driver will be
investigated independently and if possible, will be part of a different
patch. This patch only exposes the emulation capability to the driver
(vmxnet3_defs.h is identical between the driver and the emulation).

Signed-off-by: Guolin Yang <gyang@vmware.com>
Signed-off-by: Shrikrishna Khare <skhare@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 474432229f9482f0f4a2732f2e130dc48247f1d7)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/vmxnet3/vmxnet3_defs.h