From: subashab@codeaurora•org
To: Heinrich Schuchardt <xypron.glpk@gmx•de>
Cc: eric.dumazet@gmail•com, netdev@vger•kernel.org
Subject: Re: [RFC] Handle error writing UINT_MAX to u32 fields
Date: Sun, 12 Jun 2016 20:30:46 -0600 [thread overview]
Message-ID: <363ac4f6f7e1a8b905af567667a1559a@codeaurora.org> (raw)
In-Reply-To: <575A5DF0.7020300@gmx.de>
> The suggested change would extend the usable range of positive numbers
> by one bit only. As many systems are 64 bit this does not seem forward
> looking.
>
> I would prefer to have a routine that can handle 64 bit integers with
> limits (let's call it proc_doint64vec_minmax) which uses fields extra1
> and extra2 of ctl_table as min and max.
>
> Then set xfrm_table[].extra1 = 0 and xfrm_table[].extra2 = UINT_MAX if
> you need a result in the u32 range.
>
Thanks Heinrich. Do you think we can use proc_doulongvec_minmax for
this?
next prev parent reply other threads:[~2016-06-13 2:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-10 2:40 [RFC] Handle error writing UINT_MAX to u32 fields Subash Abhinov Kasiviswanathan
2016-06-10 6:28 ` Heinrich Schuchardt
2016-06-13 2:30 ` subashab [this message]
2016-06-14 20:36 ` subashab
2016-06-10 6:37 ` Heinrich Schuchardt
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=363ac4f6f7e1a8b905af567667a1559a@codeaurora.org \
--to=subashab@codeaurora$(echo .)org \
--cc=eric.dumazet@gmail$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=xypron.glpk@gmx$(echo .)de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox