From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from netronome.com (host-79-78-33-110.static.as9105.net [79.78.33.110]) by dpdk.org (Postfix) with ESMTP id D343A2BA4; Thu, 22 Feb 2018 12:13:55 +0100 (CET) Received: from netronome.com (localhost [127.0.0.1]) by netronome.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id w1MBDmYj030891; Thu, 22 Feb 2018 11:13:48 GMT Received: (from alucero@localhost) by netronome.com (8.14.4/8.14.4/Submit) id w1MBDmlF030890; Thu, 22 Feb 2018 11:13:48 GMT From: Alejandro Lucero To: dev@dpdk.org Cc: stable@dpdk.org Date: Thu, 22 Feb 2018 11:13:48 +0000 Message-Id: <1519298028-30853-1-git-send-email-alejandro.lucero@netronome.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] net/nfp: add port id to mbuf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 11:13:56 -0000 Although this can be done by the app, because other PMDs are doing it, apps expect this behaviour from the PMD. Signed-off-by: Alejandro Lucero --- drivers/net/nfp/nfp_net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index e5bfde6..5180a31 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2089,6 +2089,8 @@ enum nfp_qcp_ptr { mb->nb_segs = 1; mb->next = NULL; + mb->port = rxq->port_id; + /* Checking the RSS flag */ nfp_net_set_hash(rxq, rxds, mb); -- 1.9.1