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 7B26DA0553; Thu, 9 Jun 2022 17:55:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3EB5440689; Thu, 9 Jun 2022 17:55:50 +0200 (CEST) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by mails.dpdk.org (Postfix) with ESMTP id C9B4B40220 for ; Thu, 9 Jun 2022 17:55:49 +0200 (CEST) Received: by mail-qt1-f170.google.com with SMTP id p8so17426550qtx.9 for ; Thu, 09 Jun 2022 08:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0l/V/433q3JATnzyfcofLxzU/aAOtwwFjxVomhRli/M=; b=KWV4MfhtlR5Y5e+DQVIL5qXdJGFv6+1HqFH3HwzyrkHmo3gnYZo5tm3FNfzn690E0f fcvIhRo1NRswwhthTd63eqTisRstMwSwyszVZHFUluXjkAuW0Z6ce3Iae4Jxx2SPh4WY 0g1ZQys/WBubk8N87EvzSZ7KnFRnH2oe2+4CmiwJ9RYXFgS4DfRkg1Vi4pa5NmofnxK4 xi0SbUfUaSvHd+LHBrZkmV7v53U5aI7DmY/yYUO7LO8lwRDI0Hf62sXK+FBUU2P/E3Nj Xctf38SSBxPboGW6CLXLdbkFgyvJ4J/zzwP9i94LVMdINIqlwiXY09cI2GYXGx5SlMKt KKYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0l/V/433q3JATnzyfcofLxzU/aAOtwwFjxVomhRli/M=; b=w8+naYUbwBTqDULJxgc1DGdacjFQ020Djhc1MUwCynJfLURwlzY7ceP2vVVHCwEVt2 V/ioyUlCrCAYeUZFCKNcxZXAM4knL9pjOSXiH9qkbKjfm/HK3OBwo8ZXLFyGYrny0+Du 6FY5QE7DtF6XSWEjZDcdKi5WH89ATXCs49pV2hojc/12Vm/+3q8JXtlEwEzbFZp5luu5 M75AuoAqBOvp8J4Ls89HxZmiXYdwU/vmEd+PqYPNN0lwUujl7keEx1SCOD6Um95STLF8 fe1mdE2O6vX6TzSmAptycJ6LW/0bG2WMURVLT5oVylWTMRDATx3ENA8VQ/i4A3e0Uoje ykbw== X-Gm-Message-State: AOAM5332YBYxabYazZSZaUaUUclcDmVmr6NA8IPWXGpRSxbEFdo0e5xW 0C50cePTnseR6OA9Hb6F1+GrfNxQgLzglHN0AI8= X-Google-Smtp-Source: ABdhPJxi0m7gZH3M8PhESHVH5+CrZlChTtO+EodP8UuWKoQuOKiqZzfRfjMmnO+9jf0TQj3TUi08zPIcOoNpfjd/lmc= X-Received: by 2002:a05:622a:34e:b0:305:2f9:9ce1 with SMTP id r14-20020a05622a034e00b0030502f99ce1mr6681227qtw.458.1654790148153; Thu, 09 Jun 2022 08:55:48 -0700 (PDT) MIME-Version: 1.0 References: <20220517173941.189330-2-hkalra@marvell.com> <20220524084235.17796-1-hkalra@marvell.com> <20220524084235.17796-11-hkalra@marvell.com> In-Reply-To: <20220524084235.17796-11-hkalra@marvell.com> From: Jerin Jacob Date: Thu, 9 Jun 2022 21:25:22 +0530 Message-ID: Subject: Re: [PATCH v3 11/11] net/thunderx: populate max and min MTU values To: Harman Kalra Cc: dpdk-dev , Jerin Jacob , Maciej Czekaj , Hanumanth Pothula Content-Type: text/plain; charset="UTF-8" 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 Tue, May 24, 2022 at 2:14 PM Harman Kalra wrote: > > From: Hanumanth Pothula > > Populate maximum and minimum MTU values while retrieving > device information. > > Signed-off-by: Hanumanth Pothula Series applied to dpdk-next-net-mrvl/for-next-net. Thanks. > --- > drivers/net/thunderx/nicvf_ethdev.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c > index 0f79b02172..262c024560 100644 > --- a/drivers/net/thunderx/nicvf_ethdev.c > +++ b/drivers/net/thunderx/nicvf_ethdev.c > @@ -1479,6 +1479,10 @@ nicvf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) > dev_info->max_mac_addrs = 1; > dev_info->max_vfs = pci_dev->max_vfs; > > + dev_info->max_mtu = dev_info->max_rx_pktlen - > + (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN); > + dev_info->min_mtu = dev_info->min_rx_bufsize - NIC_HW_L2_OVERHEAD; > + > dev_info->rx_offload_capa = NICVF_RX_OFFLOAD_CAPA; > dev_info->tx_offload_capa = NICVF_TX_OFFLOAD_CAPA; > dev_info->rx_queue_offload_capa = NICVF_RX_OFFLOAD_CAPA; > -- > 2.18.0 >