From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3chas3@gmail.com> Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by dpdk.org (Postfix) with ESMTP id A9D064CA8 for ; Fri, 23 Feb 2018 05:01:27 +0100 (CET) Received: by mail-qt0-f193.google.com with SMTP id f4so9105428qtj.6 for ; Thu, 22 Feb 2018 20:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=rIPZclEmwq1+WjOmft3lc90X3hp0/VhPA/PN+z+LipE=; b=foebZCKXbidP2NG+DKVMbBi5JS+mOjomA4m27UskiADK55QVFLisad3AX73ZyunHKe zjJ4Ts861JJwGXTyVFGt7YRm9HsHFVQGDL5dllGtiOl/Ca4iKjkgzirYP7bsOMAhCt/6 2FYvf3P4nB9FZT7ELtdZkwEu9d6/q2VtFON4FI+OPJqpbFXfdMDLHmarVN8/VX20wnNa WQ+ZJJDAypLlXBkOnEOaEbb8v464KnJNg4RrJ/6PIeuCG3U7YVwiW9+nDX9clTBQFSug oncOa62Uku6DEmyRmzd/2/84k0rZkgXoEYpIIzyZJte8w56T/MqPmiWr3U4SC+wkuKjK qBuw== 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; bh=rIPZclEmwq1+WjOmft3lc90X3hp0/VhPA/PN+z+LipE=; b=O3AGpkkiG9TyBBWWlanT9D/zG7upVlGQcZyIQpUYyF9n3fT5gsbevtqm08c7b8EX66 hQ+pL8bLyjqbgkaT8GUwvDCCl/DjRkFjtX2YDGpZ03X15yUdQmVM7AMxw72wWuFRb+BN qldtG8WGk7mTx6+j+00LpmPN7vQgR4rzkLe1nqQQVZMdzgnRREkW6zyzBfBalQymbrrP J23fE4nXuy7vFBH0ou9Q0J6jEcuEIOd4MGBJtQLxwXobzbMaWLSkWPzdhWEMhe/2FXf6 WXpp7i7VLAVZjWxIfdx28byGO0Ax7DOgV2iGd2zbzvobZlv0QIUft5/auPjDzmVB0NIZ xJbw== X-Gm-Message-State: APf1xPClzpeBeB6ztii2kSUWSb/aBRPKqp2p2/LQ6nMjUDbCVwtgzsxl NT3RLeQl0C0YB/aQIz7Tz7MiAg== X-Google-Smtp-Source: AG47ELv8t+sEVNSrBmPMSlYct/L0WiocrLIL7K85EAvR3hNgM6T+ST/8+CTl0s7dUMQsh+bbY9K1YQ== X-Received: by 10.200.69.155 with SMTP id l27mr484709qtn.184.1519358486926; Thu, 22 Feb 2018 20:01:26 -0800 (PST) Received: from monolith.home (pool-173-79-224-159.washdc.fios.verizon.net. [173.79.224.159]) by smtp.gmail.com with ESMTPSA id h55sm1048093qta.80.2018.02.22.20.01.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 20:01:26 -0800 (PST) From: Chas Williams <3chas3@gmail.com> To: dev@dpdk.org Cc: declan.doherty@intel.com, Chas Williams Date: Thu, 22 Feb 2018 23:01:21 -0500 Message-Id: <20180223040121.22056-1-3chas3@gmail.com> X-Mailer: git-send-email 2.13.6 Subject: [dpdk-dev] [PATCH] net/bonding: set MTU on slave configure 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: Fri, 23 Feb 2018 04:01:28 -0000 From: Chas Williams When a slave is configured make sure that the slave's MTU matches the bonding's idea of the MTU. Signed-off-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_pmd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index c34c3251f..b59ba9f7c 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -1831,6 +1831,14 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev, } } + errval = rte_eth_dev_set_mtu(slave_eth_dev->data->port_id, + bonded_eth_dev->data->mtu); + if (errval != 0 && errval != -ENOTSUP) { + RTE_BOND_LOG(ERR, "rte_eth_dev_set_mtu: port %u, err (%d)", + slave_eth_dev->data->port_id, errval); + return errval; + } + /* Configure device */ errval = rte_eth_dev_configure(slave_eth_dev->data->port_id, nb_rx_queues, nb_tx_queues, -- 2.13.6