From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B30726CC5 for ; Wed, 7 Sep 2016 05:37:31 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP; 06 Sep 2016 20:37:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,295,1470726000"; d="scan'208";a="5796379" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga004.jf.intel.com with ESMTP; 06 Sep 2016 20:37:29 -0700 Date: Wed, 7 Sep 2016 11:37:59 +0800 From: Yuanhan Liu To: souvikdey33 Cc: dev@dpdk.org, stephen@networkplumber.org Message-ID: <20160907033759.GH23158@yliu-dev.sh.intel.com> References: <20160907032156.34492-1-sodey@sonusnet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160907032156.34492-1-sodey@sonusnet.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v3]virtio:add mtu set in virtio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 03:37:32 -0000 Firstly, thanks for the patch! And I got few more style issues for you :) The first goes to the subject (commit summary): - the prefix is "net/virtio", but not "virtio" - a space is needed after ':' On Tue, Sep 06, 2016 at 11:21:56PM -0400, souvikdey33 wrote: > Signed-off-by: Souvik Dey SoB should go the end of the commit log. > Fixes: 1fb8e8896ca8 ("Signed-off-by: Souvik Dey ") The fixline is needed for bug fixing patch only. Besides that, the commit has to be an commit has been applied before. > Reviewed-by: Stephen Hemminger I don't see such Reviewed-by from Stephen. I think you should not add it, unless someone has given you that, explicitly. > Virtio interfaces should also support setting of mtu, as in case of cloud > it is expected to have the consistent mtu across the infrastructure that > the dhcp server sends and not hardcoded to 1500(default). > --- > Corrected few style errors as reported by sys-stv. It's better to keep old changes, such as: v3: correct few style errors ... v2: .... FYI, you might want to read others patch to get more used to the right way of making a patch. > > drivers/net/virtio/virtio_ethdev.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c > index 07d6449..da16ad4 100644 > --- a/drivers/net/virtio/virtio_ethdev.c > +++ b/drivers/net/virtio/virtio_ethdev.c > @@ -92,6 +92,7 @@ static void virtio_mac_addr_add(struct rte_eth_dev *dev, > static void virtio_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index); > static void virtio_mac_addr_set(struct rte_eth_dev *dev, > struct ether_addr *mac_addr); > +static int virtio_mtu_set(struct rte_eth_dev *dev, uint16_t mtu); I think it's not necessary if you defined the function before the usage. --yliu