[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BECD8E8A1B550B48A1BF97C13991F60E2AB64B@avmb2.qlogic.org>
Date: Thu, 7 Feb 2013 17:08:29 +0000
From: Jitendra Kalsaria <jitendra.kalsaria@...gic.com>
To: "Michael S. Tsirkin" <mst@...hat.com>,
netdev <netdev@...r.kernel.org>
CC: Eilon Greenstein <eilong@...adcom.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Bruce Allan <bruce.w.allan@...el.com>,
Carolyn Wyborny <carolyn.wyborny@...el.com>,
Don Skidmore <donald.c.skidmore@...el.com>,
Greg Rose <gregory.v.rose@...el.com>,
Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com>,
Alex Duyck <alexander.h.duyck@...el.com>,
John Ronciak <john.ronciak@...el.com>,
Tushar Dave <tushar.n.dave@...el.com>,
Sony Chacko <sony.chacko@...gic.com>,
Dept-Eng Linux Driver <Linux-Driver@...gic.com>,
John Fastabend <john.r.fastabend@...el.com>,
David Miller <davem@...emloft.net>,
Jacob Keller <jacob.e.keller@...el.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
"e1000-devel@...ts.sourceforge.net"
<e1000-devel@...ts.sourceforge.net>,
"bhutchings@...arflare.com" <bhutchings@...arflare.com>,
"eric.dumazet@...il.com" <eric.dumazet@...il.com>
Subject: Re: [PATCHv2-net-3.8 2/3] qlcnic: set gso_type
On 2/7/13 5:13 AM, "Michael S. Tsirkin" <mst@...hat.com> wrote:
>qlcnic set gso_size but not gso type. This leads to crashes
>in macvtap.
>
>Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
>---
> drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
>b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
>index 6f82812..09aa310 100644
>--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
>+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
>@@ -986,8 +986,13 @@ qlcnic_process_lro(struct qlcnic_adapter *adapter,
> th->seq = htonl(seq_number);
> length = skb->len;
>
>- if (adapter->flags & QLCNIC_FW_LRO_MSS_CAP)
>+ if (adapter->flags & QLCNIC_FW_LRO_MSS_CAP) {
> skb_shinfo(skb)->gso_size = qlcnic_get_lro_sts_mss(sts_data1);
>+ if (skb->protocol == htons(ETH_P_IPV6))
>+ skb_shinfo(skb)->gso_type = SKB_GSO_TCPV6;
>+ else
>+ skb_shinfo(skb)->gso_type = SKB_GSO_TCPV4;
>+ }
>
> if (vid != 0xffff)
> __vlan_hwaccel_put_tag(skb, vid);
>--
>MST
Thanks!
Acked-by: Jitendra Kalsaria <jitendra.kalsaria@...gic.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists