]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: enable RPS on vlan devices
authorShannon Nelson <shannon.nelson@oracle.com>
Thu, 20 Sep 2018 21:59:06 +0000 (14:59 -0700)
committerBrian Maly <brian.maly@oracle.com>
Mon, 8 Oct 2018 15:58:27 +0000 (11:58 -0400)
commit5ad100b868774b8e1ab2158ba0c690f75bf42b1b
tree81bc353d2c7c89ff5a5c4455c0060be420c5ea87
parent3470655c33807412ec08e6ad0f5a9f38e822c9ef
net: enable RPS on vlan devices

This patch modifies the RPS processing code so that it searches
for a matching vlan interface on the packet and then uses the
RPS settings of the vlan interface.  If no vlan interface
is found or the vlan interface does not have RPS enabled,
it will fall back to the RPS settings of the underlying device.

In supporting VMs where we can't control the OS being used,
we'd like to separate the VM cpu processing from the host's
cpus as a way to help mitigate the impact of the L1TF issue.
When running the VM's traffic on a vlan we can stick the Rx
processing on one set of CPUs separate from the VM's CPUs.
Yes, choosing to use this will cause a bit of throughput pain
when the packets are actually passed into the VM and have to
move from one cache to another.

Orabug: 28645929

Signed-off-by: Silviu Smarandache <silviu.smarandache@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/core/dev.c