From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id AC3DDA0096 for ; Thu, 6 Jun 2019 17:27:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4665B1B9B6; Thu, 6 Jun 2019 17:27:37 +0200 (CEST) Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) by dpdk.org (Postfix) with ESMTP id 9047D1B9B0 for ; Thu, 6 Jun 2019 17:27:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=946; q=dns/txt; s=iport; t=1559834855; x=1561044455; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=hMW13lxWmN0AFTx5RuyrsHQxfJZRjgc/PfWjmbd+XG4=; b=lxL9ElyhGxOyT3yKuKcum6J9gjovWTSJ1HFegJWBSG86vuZ49sxkfXaQ VMzS1UisSZUVtYfvVr4lV0fxAqNh9PW+/50tcUscv4hSbCUMYtW8ch1EP x+oFufQwpRj3S6KM27co5jaV6Pv+hE3jZEgHUNHRsQFJWPhtfLTrJ0LwA 0=; X-IronPort-AV: E=Sophos;i="5.63,559,1557187200"; d="scan'208";a="573844995" Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 06 Jun 2019 15:27:18 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-4.cisco.com (8.15.2/8.15.2) with ESMTP id x56FRIaj025132; Thu, 6 Jun 2019 15:27:18 GMT Received: by cisco.com (Postfix, from userid 508933) id 0C6F020F2001; Thu, 6 Jun 2019 08:27:18 -0700 (PDT) From: Hyong Youb Kim To: Ferruh Yigit Cc: dev@dpdk.org, John Daley , Hyong Youb Kim Date: Thu, 6 Jun 2019 08:26:55 -0700 Message-Id: <20190606152658.17311-2-hyonkim@cisco.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20190606152658.17311-1-hyonkim@cisco.com> References: <20190606152658.17311-1-hyonkim@cisco.com> X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: rcdn-core-4.cisco.com Subject: [dpdk-dev] [PATCH 1/4] net/enic: set min and max MTU 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" These values correspond to those used in the MTU handler (enic_set_mtu). Signed-off-by: Hyong Youb Kim Reviewed-by: John Daley --- drivers/net/enic/enic_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 80fbf595e..1bf2ecca8 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -475,6 +475,8 @@ static void enicpmd_dev_info_get(struct rte_eth_dev *eth_dev, */ device_info->max_rx_pktlen = enic_mtu_to_max_rx_pktlen(enic->max_mtu); device_info->max_mac_addrs = ENIC_UNICAST_PERFECT_FILTERS; + device_info->min_mtu = ENIC_MIN_MTU; + device_info->max_mtu = enic->max_mtu; device_info->rx_offload_capa = enic->rx_offload_capa; device_info->tx_offload_capa = enic->tx_offload_capa; device_info->tx_queue_offload_capa = enic->tx_queue_offload_capa; -- 2.16.2