[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALx6S37Ub-epJr7YWEf_0Ngz0U8KXsArhZGqaOqL_m1Uh0F8hQ@mail.gmail.com>
Date: Thu, 26 Oct 2017 12:51:22 -0700
From: Tom Herbert <tom@...bertland.com>
To: Subash Abhinov Kasiviswanathan <subashab@...eaurora.org>
Cc: Tom Herbert <tom@...ntonium.net>,
"David S. Miller" <davem@...emloft.net>,
Pablo Neira Ayuso <pablo@...filter.org>,
Harald Welte <laforge@...monks.org>,
Andreas Schultz <aschultz@...p.net>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
Rohit Seth <rohit@...ntonium.net>,
netdev-owner@...r.kernel.org, Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH v6 net-next 05/12] gtp: Change to use gro_cells
On Thu, Oct 26, 2017 at 12:35 PM, Subash Abhinov Kasiviswanathan
<subashab@...eaurora.org> wrote:
>> @@ -611,6 +615,8 @@ static const struct net_device_ops gtp_netdev_ops = {
>>
>> static void gtp_link_setup(struct net_device *dev)
>> {
>> + struct gtp_dev *gtp = netdev_priv(dev);
>> +
>> dev->netdev_ops = >p_netdev_ops;
>> dev->needs_free_netdev = true;
>>
>> @@ -630,6 +636,8 @@ static void gtp_link_setup(struct net_device *dev)
>> sizeof(struct iphdr) +
>> sizeof(struct udphdr) +
>> sizeof(struct gtp0_header);
>> +
>> + gro_cells_init(>p->gro_cells, dev);
>> }
>>
>
> Hi Tom
>
> This needs a check in case the initialization failed and moved to
> ndo_init().
> Eric spotted a similar bug in rmnet and vxlan.
>
Thanks Subash. Looks like vxlan has same issue (I used that code as a
reference :-) ). Will fix both.
Tom
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> a Linux Foundation Collaborative Project
Powered by blists - more mailing lists