]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan/macvtap: Add support for L2 forwarding offloads with macvtap
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 17 Oct 2017 02:44:44 +0000 (22:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Oct 2017 11:43:59 +0000 (12:43 +0100)
commit7c58c85eef4946c2913e824c983f42e763cdcc16
tree76de77ecf6c44a9cd7062b19a19d6fec5329bc04
parente4c3728bc19ceb5f360e7bd0f88e6fba78fb1aa6
macvlan/macvtap: Add support for L2 forwarding offloads with macvtap

This patch reverts earlier commit 0b13f9aa8463 ("macvlan: forbid L2
fowarding offload for macvtap"). The reason for reverting this is because
the original patch no longer fixes what it previously did as the
underlying structure has changed for macvtap. Specifically macvtap
originally pulled packets directly off of the lowerdev. However in commit
c6149850513e ("macvtap: Add support of packet capture on macvtap device.")
that code was changed and instead macvtap would listen directly on the
macvtap device itself instead of the lower device. As such, the L2
forwarding offload should now be able to provide a performance advantage of
skipping the checks on the lower dev while not introducing any sort of
regression.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c