From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 133C7A034C; Sun, 14 Aug 2022 16:58:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B610440697; Sun, 14 Aug 2022 16:58:31 +0200 (CEST) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id 24D3440146 for ; Sun, 14 Aug 2022 16:58:29 +0200 (CEST) Received: by mail-pj1-f45.google.com with SMTP id q9-20020a17090a2dc900b001f58bcaca95so12440356pjm.3 for ; Sun, 14 Aug 2022 07:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc; bh=Ig1PCZDhEvbfU2ri9JYnDwLNiFIkQ46j08ktMuckfcg=; b=iLdD7rz32+wKDrj9Ito+l+08llFeHA9H/TnZG/vX623EdudnXcET0vnsKk/LT0z/Y/ CMspo9tbH46sKZIsGjHSjWm3syx+Rb4oNpkX638Ke5hINr3ZLcutoO0gkNixRBWwUXGQ 0Czh8UQRHn/yCjq1b3Zx9uicy6uG2iN4d1oD5QwUknT8gvjBlVNb+1l8E2kjqbmoCgDP ZRbGlkj1Jsk5omow8zpAN3pWAbveGlsCq7JdcVznHaP7lKdO3YLEXJWkWjBqXfu9w5KV 1eI/Ncxy9jsMYAGFJEnEL2giZtP3UV1us9LFC6S/u8/3aDAmeYi2olwRDbOWDMa6C0W4 qtcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=Ig1PCZDhEvbfU2ri9JYnDwLNiFIkQ46j08ktMuckfcg=; b=MWda/Ou14RQx8s4A4dhsfK1tkGUWLx+PNjoW6lPphqPwcPE1FwSUL4PORO6OLAvgN2 HsFNOsNs1rhWI2XlK3Nf3hH5JyFaw1EIRUnealXStQtu6Nx3GW9XpxNorziU9/AbeM4J QAlpld0iCDvaC8sB8PMC2hAplPJ1BLB9x7ss8tYHyQK8MFJd1W12cteWVlpnIYMJXJji PJAa0Ngpv33SxN5DrqPBozEgz2WBJdKKgoINZTjXkioWz3DxRdJwfar+qs7rey6otmR/ Gg9dXbqAPhfmOX8/zjgrtTAmoUFn12sxYJEQ+3CXRnTHL7uiSOO7f2zHyL43zIOnKmy7 NZTg== X-Gm-Message-State: ACgBeo0iM+8I+K3yanVJl3V7ArkbIfY60mZPZ5sSc6s2KzeD4fw7hhG0 nVJMl9LGK1K6XArwdvqUJVAjPw== X-Google-Smtp-Source: AA6agR5yOAhdumhObkl1vAZG+3Fx6OeBgDRJ+nSEMkg9GCxvxHZjHfQv2e4uXQ0rQ1hjrk4DWNpMWA== X-Received: by 2002:a17:902:e74a:b0:170:d1f3:6431 with SMTP id p10-20020a170902e74a00b00170d1f36431mr12774174plf.58.1660489109070; Sun, 14 Aug 2022 07:58:29 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id 189-20020a6204c6000000b0052ce4074fddsm5403182pfe.145.2022.08.14.07.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 07:58:28 -0700 (PDT) Date: Sun, 14 Aug 2022 07:58:26 -0700 From: Stephen Hemminger To: Cheng Jiang Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com, dev@dpdk.org, jiayu.hu@intel.com, xuan.ding@intel.com, wenwux.ma@intel.com, yuanx.wang@intel.com, yvonnex.yang@intel.com Subject: Re: [RFC 1/2] vhost: add ingress API for port mirroring datapath Message-ID: <20220814075826.218f0e00@hermes.local> In-Reply-To: <20220814124920.14338-2-cheng1.jiang@intel.com> References: <20220814124920.14338-1-cheng1.jiang@intel.com> <20220814124920.14338-2-cheng1.jiang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Sun, 14 Aug 2022 12:49:19 +0000 Cheng Jiang wrote: > From: Wenwu Ma > > Similar to the port mirroring function on the switch or router, this > patch also implements an ingress function on the Vhost lib. When > data is sent to a front-end, it will also send the data to its mirror > front-end. > > Signed-off-by: Cheng Jiang > Signed-off-by: Wenwu Ma We already have rte_flow, packet capture, and rx/tx callbacks. This seems like re-invention.