From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net/packet: fix packet drop as of virtio gso Date: Thu, 04 Oct 2018 22:23:42 -0700 (PDT) Message-ID: <20181004.222342.1782638085178743914.davem@davemloft.net> References: <20180929154127.20867-1-jianfeng.tan@linux.alibaba.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jasowang@redhat.com, mst@redhat.com To: jianfeng.tan@linux.alibaba.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:34178 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbeJEMUs (ORCPT ); Fri, 5 Oct 2018 08:20:48 -0400 In-Reply-To: <20180929154127.20867-1-jianfeng.tan@linux.alibaba.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jianfeng Tan Date: Sat, 29 Sep 2018 15:41:27 +0000 > When we use raw socket as the vhost backend, a packet from virito with > gso offloading information, cannot be sent out in later validaton at > xmit path, as we did not set correct skb->protocol which is further used > for looking up the gso function. > > To fix this, we set this field according to virito hdr information. > > Fixes: e858fae2b0b8f4 ("virtio_net: use common code for virtio_net_hdr and skb GSO conversion") > > Cc: stable@vger.kernel.org > Signed-off-by: Jianfeng Tan Applied and queued up for -stable.