[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAF=yD-JnCwpjcvGLTiVQct8vQO=dgnsS5iKpUgmapk0xt8EcAg@mail.gmail.com>
Date: Sun, 16 Sep 2018 14:12:21 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Subash Abhinov Kasiviswanathan <subashab@...eaurora.org>
Cc: Network Development <netdev@...r.kernel.org>,
Paolo Abeni <pabeni@...hat.com>, steffen.klassert@...unet.com,
David Miller <davem@...emloft.net>,
Willem de Bruijn <willemb@...gle.com>
Subject: Re: [PATCH net-next RFC 5/8] net: deconstify net_offload
On Fri, Sep 14, 2018 at 11:30 PM Subash Abhinov Kasiviswanathan
<subashab@...eaurora.org> wrote:
>
> On 2018-09-14 11:59, Willem de Bruijn wrote:
> > From: Willem de Bruijn <willemb@...gle.com>
> >
> > With configurable gro, the flags field in net_offloads may be changed.
> >
> > Remove the const keyword. This is a noop otherwise.
> >
> > Signed-off-by: Willem de Bruijn <willemb@...gle.com>
> > diff --git a/net/sctp/offload.c b/net/sctp/offload.c
> > index 123e9f2dc226..ad504b83245d 100644
> > --- a/net/sctp/offload.c
> > +++ b/net/sctp/offload.c
> > @@ -90,7 +90,7 @@ static struct sk_buff *sctp_gso_segment(struct
> > sk_buff
> > *skb,
> > return segs;
> > }
> >
> > -static const struct net_offload sctp_offload = {
> > +static struct net_offload sctp_offload = {
> > .callbacks = {
> > .gso_segment = sctp_gso_segment,
> > },
>
> Hi Willem
>
> sctp6 also needs to be deconstified.
>
> diff --git a/net/sctp/offload.c b/net/sctp/offload.c
> index ad504b8..4be7794 100644
> --- a/net/sctp/offload.c
> +++ b/net/sctp/offload.c
> @@ -96,7 +96,7 @@ static struct sk_buff *sctp_gso_segment(struct sk_buff
> *skb,
> },
> };
>
> -static const struct net_offload sctp6_offload = {
> +static struct net_offload sctp6_offload = {
> .callbacks = {
> .gso_segment = sctp_gso_segment,
> },
Thanks! I'll update that.
Powered by blists - more mailing lists