From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by dpdk.org (Postfix) with ESMTP id E76F41B220 for ; Mon, 9 Oct 2017 17:01:13 +0200 (CEST) Received: by mail-lf0-f42.google.com with SMTP id d17so27676837lfe.2 for ; Mon, 09 Oct 2017 08:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Oyt5faJSlmAsrCw6FTMpG1v+Q3dFsfFACdmMwv1s54U=; b=B6fDQczexB/+2wl9QtCMR9j/zQ7P/0BPIAMlffjhbRHaHmEYhCado1WAZBhts3lL8X qGufTbOTG0Y17achwdhuOkCpFwcrbSCnk21j1iFm4031ZaHJVwFo5sk9A2sz9bwWWffq ZH9u9J2ni4uICXMWb2PogeI+Vn2jIJ55CggVj/Sy5KJQCu5NBithnR9T+EUXrTSJXWX0 b2DaIq0S6LyjeW2qKlu7gQYi+TdCmrHbpYLuQggpEKzhCEhCaQPZ0mIh8FEl+lvuz1wC TZNMXQdt8UxLyypLq/nR0/GasTENnkOlV62ljm/A1o4UFeJ8sYywvbW2PJIAR5BRzRxh U2Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Oyt5faJSlmAsrCw6FTMpG1v+Q3dFsfFACdmMwv1s54U=; b=YUhugEZl3v0YbWcZIhWpZ3b8GU0KdrDYLX6+q/4UnJGt9Eh67YDKdY2cDovNL/Y7X4 HEPvU7gALiEBFnMI/yVoTKI/fFaOpptiqBY5U0vKwQJpuoWRDi50L5oDCWUtJ0bl/ABv y9ah3El9dqsfd+1o9+SfrFV9vEwcab7YTudw9mnWIPhglViPkLK44Ue+e1LWg1f3eTkB 1ZZspeRgrdEYT0gaiGh/YQhz82a2eB4cKbTxT09i5kLq+wckVjxisvJgNnjea9Wvu5Sx s3ldq8hizIkjs3mH9bxH3KtYoHuMB2dD4zkIZiQkMuFrROdAUWMYw9rQOzerlEVq6scC uqLg== X-Gm-Message-State: AMCzsaU5Gz92IoK85etuY+hXd0/IX5I45pM5AhowDRdrws6ypHXZa3bV NNsQCg8JdHtjKO2wTfh/i0Er3SUfG/Q= X-Google-Smtp-Source: AOwi7QCBVqRC+vETqNEq/i/QCdFiN481QABo3IhKhDxhT7C9J2E8xa3p9NHrR5YxUcHJkNLyROIUVw== X-Received: by 10.46.93.69 with SMTP id r66mr554067ljb.96.1507561273106; Mon, 09 Oct 2017 08:01:13 -0700 (PDT) Received: from tdu.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id z64sm1352637lfa.91.2017.10.09.08.01.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Oct 2017 08:01:12 -0700 (PDT) From: Tomasz Duszynski To: dev@dpdk.org Cc: mw@semihalf.com, dima@marvell.com, nsamsono@marvell.com, Jianbo.liu@linaro.org, Tomasz Duszynski , Jacek Siuda Date: Mon, 9 Oct 2017 17:00:35 +0200 Message-Id: <1507561244-20115-8-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507561244-20115-1-git-send-email-tdu@semihalf.com> References: <1507031500-11473-1-git-send-email-tdu@semihalf.com> <1507561244-20115-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH v4 07/16] net/mrvl: add jumbo frame support 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: Mon, 09 Oct 2017 15:01:14 -0000 Add jumbo frame support. Signed-off-by: Jacek Siuda Signed-off-by: Tomasz Duszynski --- doc/guides/nics/features/mrvl.ini | 1 + drivers/net/mrvl/mrvl_ethdev.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/doc/guides/nics/features/mrvl.ini b/doc/guides/nics/features/mrvl.ini index 13cfaab..2ddabfb 100644 --- a/doc/guides/nics/features/mrvl.ini +++ b/doc/guides/nics/features/mrvl.ini @@ -7,3 +7,4 @@ Speed capabilities = Y Link status = Y MTU update = Y +Jumbo frame = Y diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index 628d4de..3a5f6a0 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -227,6 +227,10 @@ mrvl_dev_configure(struct rte_eth_dev *dev) return -EINVAL; } + if (dev->data->dev_conf.rxmode.jumbo_frame) + dev->data->mtu = dev->data->dev_conf.rxmode.max_rx_pkt_len - + ETHER_HDR_LEN - ETHER_CRC_LEN; + ret = mrvl_configure_rxqs(priv, dev->data->port_id, dev->data->nb_rx_queues); if (ret < 0) @@ -636,6 +640,7 @@ mrvl_dev_infos_get(struct rte_eth_dev *dev __rte_unused, info->tx_desc_lim.nb_min = MRVL_PP2_TXD_MIN; info->tx_desc_lim.nb_align = MRVL_PP2_TXD_ALIGN; + info->rx_offload_capa = DEV_RX_OFFLOAD_JUMBO_FRAME; /* By default packets are dropped if no descriptors are available */ info->default_rxconf.rx_drop_en = 1; -- 2.7.4