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 CF0F8A0096 for ; Mon, 8 Apr 2019 16:04:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7073D2C54; Mon, 8 Apr 2019 16:04:15 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 63B842BCE for ; Mon, 8 Apr 2019 16:04:13 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us4.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 51D8E8000F1 for ; Mon, 8 Apr 2019 14:04:11 +0000 (UTC) Received: from ocex03.SolarFlarecom.com (10.20.40.36) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 8 Apr 2019 07:04:08 -0700 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Mon, 8 Apr 2019 07:04:08 -0700 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id x38E47O5021637 for ; Mon, 8 Apr 2019 15:04:07 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id 10CDD161610 for ; Mon, 8 Apr 2019 15:04:07 +0100 (BST) From: Andrew Rybchenko To: Date: Mon, 8 Apr 2019 15:04:05 +0100 Message-ID: <1554732245-20899-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24538.005 X-TM-AS-Result: No-0.653000-4.000000-10 X-TMASE-MatchedRID: vvfEbrME0x/X+jWaHZ/d5xWCVBr+Ay98TJDl9FKHbrlqv/+QKNcPLoO3 HyUMPRbHKal5eW6drDVlhVfQX0nwC49oUcx9VMLgFEUknJ/kEl5jFT88f69nG/oLR4+zsDTtjoc zmuoPCq0vs8kw9ww5fGrssMEUBKUTBrtPhNUKdfTu1lDUkYEXDOEphlEzFuAXqPtwLLjVteYsId t+6PpgD/5IjKMmm//vfqb3GPPIqhs3I8DUyOoaeU+wJNKvG6HQ1PNkozhRY3HUNR3AhwxI7B5MW /CBA+K3lExlQIQeRG0= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-0.653000-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24538.005 X-MDID: 1554732251-YoDMFprWSx9y Subject: [dpdk-dev] [PATCH] net/sfc: 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" Message-ID: <20190408140405.2Z_p3N22z5qIIOsaRd2buo_zoj81XMMmbtbgiLPZJEM@z> Advertise minimum and maximum MTU value in device information. Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_ethdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c index 6c33601e7..ff192314d 100644 --- a/drivers/net/sfc/sfc_ethdev.c +++ b/drivers/net/sfc/sfc_ethdev.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "efx.h" @@ -92,6 +93,9 @@ sfc_dev_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) sfc_log_init(sa, "entry"); + dev_info->min_mtu = ETHER_MIN_MTU; + dev_info->max_mtu = EFX_MAC_SDU_MAX; + dev_info->max_rx_pktlen = EFX_MAC_PDU_MAX; /* Autonegotiation may be disabled */ -- 2.17.1