From: Davide Caratti <dcaratti@redhat.com>
To: nicolas.dichtel@6wind.com, Jamal Hadi Salim <jhs@mojatatu.com>,
"David S . Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next 2/2] net/sched: act_csum: compute crc32c on SCTP packets
Date: Sun, 08 Jan 2017 17:43:43 +0100 [thread overview]
Message-ID: <1483893823.2552.34.camel@redhat.com> (raw)
In-Reply-To: <b4e2b22a-5a06-3c31-a312-3c6de1ef14e5@6wind.com>
On Fri, 2017-01-06 at 10:23 +0100, Nicolas Dichtel wrote:
> Le 05/01/2017 à 17:59, Davide Caratti a écrit :
> > @@ -21,7 +21,8 @@ enum {
> > TCA_CSUM_UPDATE_FLAG_IGMP = 4,
> > TCA_CSUM_UPDATE_FLAG_TCP = 8,
> > TCA_CSUM_UPDATE_FLAG_UDP = 16,
> > - TCA_CSUM_UPDATE_FLAG_UDPLITE = 32
> > + TCA_CSUM_UPDATE_FLAG_UDPLITE = 32,
> > + TCA_CSUM_UPDATE_FLAG_SCTP = 64
> nit: please put a comma after the '64' so that the next person who adds
> a flag
> will not have to touch that line.
>
ok,
> > @@ -365,6 +385,12 @@ static int tcf_csum_ipv4(struct sk_buff *skb, u32
> > update_flags)
> > ntohs(iph->tot_len),
> > 1))
> > goto fail;
> > break;
> > + case IPPROTO_SCTP:
> > + if (update_flags & TCA_CSUM_UPDATE_FLAG_SCTP)
> > + if (!tcf_csum_sctp(skb, iph->ihl * 4,
> > + ntohs(iph->tot_len)))
> nit: one 'if' only?
> if (update_flags & TCA_CSUM_UPDATE_FLAG_SCTP &&
> !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))
>
ok,
> > @@ -481,6 +507,12 @@ static int tcf_csum_ipv6(struct sk_buff *skb, u32
> > update_flags)
> > pl +
> > sizeof(*ip6h), 1))
> > goto fail;
> > goto done;
> > + case IPPROTO_SCTP:
> > + if (update_flags & TCA_CSUM_UPDATE_FLAG_SCTP)
> > + if (!tcf_csum_sctp(skb, hl,
> > + pl +
> > sizeof(*ip6h)))
> Same here.
>
ok,
>
> Regards,
> Nicolas
hello Nicolas,
thank you for the attention! I will apply the changes you suggested and
repost a v2.
regards,
prev parent reply other threads:[~2017-01-08 16:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-05 16:59 [PATCH net-next 0/2] net/sched: act_csum: add support for SCTP checksum Davide Caratti
2017-01-05 16:59 ` [PATCH net-next 1/2] net/sched: Kconfig: select LIBCRC32C if NET_ACT_CSUM is selected Davide Caratti
2017-01-05 16:59 ` [PATCH net-next 2/2] net/sched: act_csum: compute crc32c on SCTP packets Davide Caratti
2017-01-06 9:23 ` Nicolas Dichtel
2017-01-08 16:43 ` Davide Caratti [this message]
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=1483893823.2552.34.camel@redhat.com \
--to=dcaratti@redhat.com \
--cc=davem@davemloft.net \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.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.