All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev@vger.kernel.org, Neil Horman <nhorman@tuxdriver.com>,
	Vlad Yasevich <vyasevich@gmail.com>,
	David Miller <davem@davemloft.net>,
	brouer@redhat.com, alexander.duyck@gmail.com,
	alexei.starovoitov@gmail.com, borkmann@iogearbox.net,
	marek@cloudflare.com, hannes@stressinduktion.org, fw@strlen.de,
	pabeni@redhat.com, john.r.fastabend@intel.com,
	linux-sctp@vger.kernel.org
Subject: Re: [RFC PATCH net-next 1/3] skbuff: export skb_gro_receive
Date: Wed, 27 Jan 2016 18:46:25 +0000	[thread overview]
Message-ID: <56A91081.9050000@gmail.com> (raw)
In-Reply-To: <1453919718.20722.15.camel@edumazet-glaptop2.roam.corp.google.com>

Em 27-01-2016 16:35, Eric Dumazet escreveu:
> On Wed, 2016-01-27 at 15:06 -0200, Marcelo Ricardo Leitner wrote:
>> sctp GSO requires it and sctp can be compiled as a module, so export
>> this function.
>>
>> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
>> ---
>>   net/core/skbuff.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/net/core/skbuff.c b/net/core/skbuff.c
>> index b2df375ec9c2173a8132b8efa1c3062f0510284b..704b69682085dec77f3d0f990aaf0024afd705b9 100644
>> --- a/net/core/skbuff.c
>> +++ b/net/core/skbuff.c
>> @@ -3312,6 +3312,7 @@ done:
>>   	NAPI_GRO_CB(skb)->same_flow = 1;
>>   	return 0;
>>   }
>> +EXPORT_SYMBOL_GPL(skb_gro_receive);
>>
>>   void __init skb_init(void)
>>   {
>
>
> Normally, all the offloading support belongs in vmlinux, so this export
> is not needed.
>
> For instance, we support GRO IPV6 even if IPv6 is not enabled on the
> host.
>
> Ie all these net/ipv6 files are included in vmlinux if CONFIG_INET is
> enabled
>
> ip6_offload.o tcpv6_offload.o udp_offload.o exthdrs_offload.o

Okay. For SCTP it might be a bit harder due to its CRC, which is using 
crc32c function. I'll check it.

Thanks,
Marcelo


WARNING: multiple messages have this Message-ID (diff)
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev@vger.kernel.org, Neil Horman <nhorman@tuxdriver.com>,
	Vlad Yasevich <vyasevich@gmail.com>,
	David Miller <davem@davemloft.net>,
	brouer@redhat.com, alexander.duyck@gmail.com,
	alexei.starovoitov@gmail.com, borkmann@iogearbox.net,
	marek@cloudflare.com, hannes@stressinduktion.org, fw@strlen.de,
	pabeni@redhat.com, john.r.fastabend@intel.com,
	linux-sctp@vger.kernel.org
Subject: Re: [RFC PATCH net-next 1/3] skbuff: export skb_gro_receive
Date: Wed, 27 Jan 2016 16:46:25 -0200	[thread overview]
Message-ID: <56A91081.9050000@gmail.com> (raw)
In-Reply-To: <1453919718.20722.15.camel@edumazet-glaptop2.roam.corp.google.com>

Em 27-01-2016 16:35, Eric Dumazet escreveu:
> On Wed, 2016-01-27 at 15:06 -0200, Marcelo Ricardo Leitner wrote:
>> sctp GSO requires it and sctp can be compiled as a module, so export
>> this function.
>>
>> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
>> ---
>>   net/core/skbuff.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/net/core/skbuff.c b/net/core/skbuff.c
>> index b2df375ec9c2173a8132b8efa1c3062f0510284b..704b69682085dec77f3d0f990aaf0024afd705b9 100644
>> --- a/net/core/skbuff.c
>> +++ b/net/core/skbuff.c
>> @@ -3312,6 +3312,7 @@ done:
>>   	NAPI_GRO_CB(skb)->same_flow = 1;
>>   	return 0;
>>   }
>> +EXPORT_SYMBOL_GPL(skb_gro_receive);
>>
>>   void __init skb_init(void)
>>   {
>
>
> Normally, all the offloading support belongs in vmlinux, so this export
> is not needed.
>
> For instance, we support GRO IPV6 even if IPv6 is not enabled on the
> host.
>
> Ie all these net/ipv6 files are included in vmlinux if CONFIG_INET is
> enabled
>
> ip6_offload.o tcpv6_offload.o udp_offload.o exthdrs_offload.o

Okay. For SCTP it might be a bit harder due to its CRC, which is using 
crc32c function. I'll check it.

Thanks,
Marcelo

  reply	other threads:[~2016-01-27 18:46 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 17:06 [RFC PATCH net-next 0/3] sctp: add GSO support Marcelo Ricardo Leitner
2016-01-27 17:06 ` Marcelo Ricardo Leitner
2016-01-27 17:06 ` [RFC PATCH net-next 1/3] skbuff: export skb_gro_receive Marcelo Ricardo Leitner
2016-01-27 17:06   ` Marcelo Ricardo Leitner
2016-01-27 18:35   ` Eric Dumazet
2016-01-27 18:35     ` Eric Dumazet
2016-01-27 18:46     ` Marcelo Ricardo Leitner [this message]
2016-01-27 18:46       ` Marcelo Ricardo Leitner
2016-01-27 17:06 ` [RFC PATCH net-next 2/3] sctp: offloading support structure Marcelo Ricardo Leitner
2016-01-27 17:06   ` Marcelo Ricardo Leitner
2016-01-27 17:06 ` [RFC PATCH net-next 3/3] sctp: Add GSO support Marcelo Ricardo Leitner
2016-01-27 17:06   ` Marcelo Ricardo Leitner
2016-01-29 19:15   ` Alexander Duyck
2016-01-29 19:15     ` Alexander Duyck
2016-01-29 19:42     ` Marcelo Ricardo Leitner
2016-01-29 19:42       ` Marcelo Ricardo Leitner
2016-01-30  4:07       ` Alexander Duyck
2016-01-30  4:07         ` Alexander Duyck
2016-02-01 16:22         ` Marcelo Ricardo Leitner
2016-02-01 16:22           ` Marcelo Ricardo Leitner
2016-02-01 17:03           ` Alexander Duyck
2016-02-01 17:03             ` Alexander Duyck
2016-02-01 17:41             ` Marcelo Ricardo Leitner
2016-02-01 17:41               ` Marcelo Ricardo Leitner
2016-01-28 13:51 ` [RFC PATCH net-next 0/3] sctp: add " David Laight
2016-01-28 15:53   ` 'Marcelo Ricardo Leitner'
2016-01-28 15:53     ` 'Marcelo Ricardo Leitner'
2016-01-28 17:30     ` David Laight
2016-01-28 20:55       ` 'Marcelo Ricardo Leitner'
2016-01-28 20:55         ` 'Marcelo Ricardo Leitner'
2016-01-29 15:51         ` David Laight
2016-01-29 18:53           ` 'Marcelo Ricardo Leitner'
2016-01-29 18:53             ` 'Marcelo Ricardo Leitner'
2016-01-29 15:57         ` David Laight
2016-01-29 16:07         ` David Laight
2016-01-28 17:54   ` Michael Tuexen
2016-01-28 17:54     ` Michael Tuexen
2016-01-28 21:03     ` Marcelo Ricardo Leitner
2016-01-28 21:03       ` Marcelo Ricardo Leitner
2016-01-28 23:36       ` Michael Tuexen
2016-01-28 23:36         ` Michael Tuexen
2016-01-29  1:18         ` Marcelo Ricardo Leitner
2016-01-29  1:18           ` Marcelo Ricardo Leitner
2016-01-29 10:57           ` Michael Tuexen
2016-01-29 10:57             ` Michael Tuexen
2016-01-29 11:26             ` Marcelo Ricardo Leitner
2016-01-29 11:26               ` Marcelo Ricardo Leitner
2016-01-29 12:25               ` Michael Tuexen
2016-01-29 12:25                 ` Michael Tuexen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A91081.9050000@gmail.com \
    --to=marcelo.leitner@gmail.com \
    --cc=alexander.duyck@gmail.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=borkmann@iogearbox.net \
    --cc=brouer@redhat.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=fw@strlen.de \
    --cc=hannes@stressinduktion.org \
    --cc=john.r.fastabend@intel.com \
    --cc=linux-sctp@vger.kernel.org \
    --cc=marek@cloudflare.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@tuxdriver.com \
    --cc=pabeni@redhat.com \
    --cc=vyasevich@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.