[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150917201701.GG25806@tuxdriver.com>
Date: Thu, 17 Sep 2015 16:17:01 -0400
From: "John W. Linville" <linville@...driver.com>
To: Jesse Gross <jesse@...ira.com>
Cc: netdev <netdev@...r.kernel.org>, David Miller <davem@...emloft.net>
Subject: Re: [PATCH] geneve: remove use of internal IP header when calling
IP_ECN_decapsulate
On Thu, Sep 17, 2015 at 12:46:48PM -0700, Jesse Gross wrote:
> On Thu, Sep 17, 2015 at 10:17 AM, John W. Linville
> <linville@...driver.com> wrote:
> > diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
> > index da3259ce7c8d..a917ae1cfbf3 100644
> > --- a/drivers/net/geneve.c
> > +++ b/drivers/net/geneve.c
> > @@ -178,13 +178,15 @@ static void geneve_rx(struct geneve_sock *gs, struct sk_buff *skb)
> >
> > skb_reset_network_header(skb);
> >
> > - iph = ip_hdr(skb); /* Now inner IP header... */
> > - err = IP_ECN_decapsulate(iph, skb);
> > + if (iph)
> > + err = IP_ECN_decapsulate(iph, skb);
>
> It looks like this is now conditional based on !collect_md. I'm not
> sure that we want to have a difference in behavior between the two.
Sure, I can move the iph assignment higher-up and keep the other bits unconditional.
John
--
John W. Linville Someday the world will need a hero, and you
linville@...driver.com might be all we have. Be ready.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists