From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752354AbdI0IYH (ORCPT ); Wed, 27 Sep 2017 04:24:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbdI0IYF (ORCPT ); Wed, 27 Sep 2017 04:24:05 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E7EE9267C0 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jasowang@redhat.com From: Jason Wang To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: mst@redhat.com, Jason Wang Subject: [PATCH net-next 0/3] support changing steering policies in tuntap Date: Wed, 27 Sep 2017 16:23:54 +0800 Message-Id: <1506500637-13881-1-git-send-email-jasowang@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 27 Sep 2017 08:24:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all: We use flow caches based flow steering policy now. This is good for connection-oriented communication such as TCP but not for the others e.g connectionless unidirectional workload which cares only about pps. This calls the ability of supporting changing steering policies in tuntap which was done by this series. Flow steering policy was abstracted into tun_steering_ops in the first patch. Then new ioctls to set or query current policy were introduced, and the last patch introduces a very simple policy that select txq based on processor id as an example. Test was done by using xdp_redirect to redirect traffic generated from MoonGen that was running on a remote machine. And I see 37% improvement for processor id policy compared to automatic flow steering policy. In the future, both simple and sophisticated policy like RSS or other guest driven steering policies could be done on top. Thanks Jason Wang (3): tun: abstract flow steering logic tun: introduce ioctls to set and get steering policies tun: introduce cpu id based steering policy drivers/net/tun.c | 151 +++++++++++++++++++++++++++++++++++++------- include/uapi/linux/if_tun.h | 8 +++ 2 files changed, 136 insertions(+), 23 deletions(-) -- 2.7.4