mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net RESEND 0/2] overflow-arith: begin to add support for overflow builtins functions
@ 2015-10-16  9:32 Hannes Frederic Sowa
  2015-10-16  9:32 ` [PATCH net RESEND 1/2] overflow-arith: begin to add support for overflow builtin functions Hannes Frederic Sowa
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hannes Frederic Sowa @ 2015-10-16  9:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: netdev, dvyukov, davem, Hannes Frederic Sowa

Hello,

I add a new header, linux/overflow-arith.h, as the central place to add
overflow and wrap-around checking functions. The reason I am doing so
is that it can make use of compiler supported builtin functions which
can leverage hardware.

As I need this for a fix in the ipv6 stack, which is also included in
this series, I propose to add it sooner than later over Davem's net
tree. This is also the reason why I start slowly with only the one
function I need at this time.

Thanks for reviewing!

Hannes Frederic Sowa (2):
  overflow-arith: begin to add support for overflow builtin functions
  ipv6: protect mtu calculation of wrap-around and infinite loop by
    rounding issues

 include/linux/compiler-gcc.h   |  4 ++++
 include/linux/overflow-arith.h | 18 ++++++++++++++++++
 net/ipv6/ip6_output.c          |  6 +++++-
 3 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 include/linux/overflow-arith.h

-- 
2.4.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-23  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-16  9:32 [PATCH net RESEND 0/2] overflow-arith: begin to add support for overflow builtins functions Hannes Frederic Sowa
2015-10-16  9:32 ` [PATCH net RESEND 1/2] overflow-arith: begin to add support for overflow builtin functions Hannes Frederic Sowa
2015-10-16  9:32 ` [PATCH net RESEND 2/2] ipv6: protect mtu calculation of wrap-around and infinite loop by rounding issues Hannes Frederic Sowa
2015-10-23  9:50 ` [PATCH net RESEND 0/2] overflow-arith: begin to add support for overflow builtins functions David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®