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 293C4A034E; Thu, 23 Dec 2021 04:02:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99BB44068C; Thu, 23 Dec 2021 04:02:08 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 5112E4067B for ; Thu, 23 Dec 2021 04:02:07 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id lr15-20020a17090b4b8f00b001b19671cbebso4347806pjb.1 for ; Wed, 22 Dec 2021 19:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=Rbge/fQFxbP5ERVEJ/GTUKZ86YfQCDv1w/qq6c+Zx+k=; b=ReIJeXHwJwKQ/JZQepy0qzKqbIvSZqFKkAxUWM1C8VSfMjUCmmagHd6zVA5a7FoAvJ 2xtjohL9LFkWXQplR5LPc6cXct3MMO/BZsYttBW+TcrxtsBgUeTlqy8UtmrL3Tvgoo13 lbbqb+erj8WBudQEK8fo7GvRfA3n6u7T/OymyzH56rjR+PHqIsoJ8my6FdrB8sxQxry/ vFHFwPmIo70iSdxZYzUHoTfZWD3JMPj5JsxWCDUZdRYS6y70bTv5LgtKMGmgRiyJhil3 Yc3EWxe/FSO66IUysf4Jvsw1hu4IsjLq9RlyPT+YkukERcELHcNnEAKIrVR+SfgxnG9c 5ZvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Rbge/fQFxbP5ERVEJ/GTUKZ86YfQCDv1w/qq6c+Zx+k=; b=XW0WEMHrcpy0aM6CQ9u7fSsDnil/fHkEeC76Dntiy+b+/Cm8m7xe5CUgQs0C+IV/2q 9HJqwQIG5PdeAPZl8r3Hzd0PD0C8TtA2zv6l29adguhMyTFkTE/VWtgvcwzqp3FpaADj ZSxmBU6jL+BADa8q9Vhm6qQxMxFOV72E23Zo0Ldi+uF/iL9ehE1aJeMcjHqaHbQuIPoX yPwGPg3SOPKPZlvJVJFzDsnV781E3rf1qE/vjG582plNvp/9wCAg8XABF3KOVnNREk1z IwH/7AexjAdy8EtX2X1CRHDGrIOj3wqd2fK/YcH04rErawhVdf/SgeWDs83jwX6fkkVN J6PQ== X-Gm-Message-State: AOAM530DmrK64SBUi1AapubUFe80qXIJLeiLtmz8ncEHRkFlqwemATRP fquqkDMihqmXAJt4oTKB+3jbmRvXpGTtFLdm1P4= X-Google-Smtp-Source: ABdhPJwLhEH8pPBoJ52Swjk3mIJcts9Ioz/TDOEIDLDXvybXmpJ2aSIyzvo7hdWHGUI4rjQ8BlxF/yaNTatxK8MAt6Q= X-Received: by 2002:a17:902:da8c:b0:148:a2e7:fb1e with SMTP id j12-20020a170902da8c00b00148a2e7fb1emr546912plx.95.1640228526435; Wed, 22 Dec 2021 19:02:06 -0800 (PST) MIME-Version: 1.0 From: Harold Huang Date: Thu, 23 Dec 2021 11:01:55 +0800 Message-ID: Subject: Re: [PATCH v4] net/kni: reset rte_kni_conf struct before initialization To: baymaxhuang@gmail.com Cc: dev@dpdk.org, ferruh.yigit@intel.com 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 The problem this patch wants to solve can be reproduced by ovs-dpdk: 1. create a kni port in ovs: ovs-vsctl add-port ovs-br0 kni0 -- set Interface kni0 type=dpdk options:dpdk-devargs=net_kni0 2. change the mtu of the kni device in kernel: ip link set kni0 mtu 1500 If we do not set rte_kni_conf to 0, the min_mtu and max_mtu are random and change mtu could be failed.