This patch reverts the commit 6e7bc478c9a0
("net: skb_needs_check() accepts CHECKSUM_NONE for tx"),
because we removed the UFO support.
Cc: Eric Dumazet <redacted>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Tonghao Zhang <redacted>
---
net/core/dev.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
When initializing the skbuff SLAB cache, we should make
sure it is successful. Adding BUG_ON to check it and
init_inodecache() is in the same case.
Signed-off-by: Tonghao Zhang <redacted>
---
net/core/skbuff.c | 2 ++
1 file changed, 2 insertions(+)
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com> Date: 2017-08-09 18:31:16
On Wed, Aug 9, 2017 at 5:04 AM, Tonghao Zhang [off-list ref] wrote:
This patch reverts the commit 6e7bc478c9a0
("net: skb_needs_check() accepts CHECKSUM_NONE for tx"),
because we removed the UFO support.
Cc: Eric Dumazet <redacted>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Tonghao Zhang <redacted>
I would wait until net is merged into net-next. This will cause a conflict.
Also, while logically equivalent, it is not a real revert (as in `git
revert $SHA1`) of that patch.
Aside from those concerns, I agree that the original patch is no
longer needed now that UFO is reverted.
Thanks for your work.
On Thu, Aug 10, 2017 at 2:30 AM, Willem de Bruijn
[off-list ref] wrote:
On Wed, Aug 9, 2017 at 5:04 AM, Tonghao Zhang [off-list ref] wrote:
quoted
This patch reverts the commit 6e7bc478c9a0
("net: skb_needs_check() accepts CHECKSUM_NONE for tx"),
because we removed the UFO support.
Cc: Eric Dumazet <redacted>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Tonghao Zhang <redacted>
I would wait until net is merged into net-next. This will cause a conflict.
Also, while logically equivalent, it is not a real revert (as in `git
revert $SHA1`) of that patch.
Aside from those concerns, I agree that the original patch is no
longer needed now that UFO is reverted.
When initializing the skbuff SLAB cache, we should make
sure it is successful. Adding BUG_ON to check it and
init_inodecache() is in the same case.
Signed-off-by: Tonghao Zhang <redacted>
---
net/core/skbuff.c | 2 ++
1 file changed, 2 insertions(+)
I know you guys want every allocation to be explicitly checked so that
everything is consistent for static code analysis checkers.
But this is just wasted code.
The first allocation will take a NULL dereference and the backtrace
will make it completely clear which SLAB cache was NULL and couldn't
be allocated.
So there is no real value to adding these checks.
So I'm not applying this, sorry.
The same logic goes for your other patch of this nature.
When initializing the skbuff SLAB cache, we should make
sure it is successful. Adding BUG_ON to check it and
init_inodecache() is in the same case.
Signed-off-by: Tonghao Zhang <redacted>
---
net/core/skbuff.c | 2 ++
1 file changed, 2 insertions(+)
I know you guys want every allocation to be explicitly checked so that
everything is consistent for static code analysis checkers.
But this is just wasted code.
The first allocation will take a NULL dereference and the backtrace
will make it completely clear which SLAB cache was NULL and couldn't
be allocated.
So there is no real value to adding these checks.
So I'm not applying this, sorry.
The same logic goes for your other patch of this nature.
Original this function have return value but not used, and check allocate result internal,
When I change this function to void return, I add this BUG_ON.
quoted hunk
-----Original Message-----
From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org]
On Behalf Of Tonghao Zhang
Sent: Thursday, August 10, 2017 2:10 PM
To: David Miller
Cc: Linux Kernel Network Developers
Subject: Re: [PATCH net-next] skbuff: Add BUG_ON in skb_init.
Thanks a lot. I found it when reviewing this codes. and BUG_ON is
added in the init_inodecache(). We may remove it or not ?
When initializing the skbuff SLAB cache, we should make
sure it is successful. Adding BUG_ON to check it and
init_inodecache() is in the same case.
Signed-off-by: Tonghao Zhang <redacted>
---
net/core/skbuff.c | 2 ++
1 file changed, 2 insertions(+)
I know you guys want every allocation to be explicitly checked so that
everything is consistent for static code analysis checkers.
But this is just wasted code.
The first allocation will take a NULL dereference and the backtrace
will make it completely clear which SLAB cache was NULL and couldn't
be allocated.
So there is no real value to adding these checks.
So I'm not applying this, sorry.
The same logic goes for your other patch of this nature.
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com> Date: 2017-08-10 17:03:57
On Wed, Aug 9, 2017 at 6:02 PM, Tonghao Zhang [off-list ref] wrote:
Thanks for your work.
You, too.
On Thu, Aug 10, 2017 at 2:30 AM, Willem de Bruijn
[off-list ref] wrote:
quoted
On Wed, Aug 9, 2017 at 5:04 AM, Tonghao Zhang [off-list ref] wrote:
quoted
This patch reverts the commit 6e7bc478c9a0
("net: skb_needs_check() accepts CHECKSUM_NONE for tx"),
because we removed the UFO support.
Cc: Eric Dumazet <redacted>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Tonghao Zhang <redacted>
I would wait until net is merged into net-next. This will cause a conflict.
Also, while logically equivalent, it is not a real revert (as in `git
revert $SHA1`) of that patch.
Aside from those concerns, I agree that the original patch is no
longer needed now that UFO is reverted.
Please do resubmit the revert patch once net has been merged into net-next.
Hi Willem, because we change the CHECKSUM_NONE to CHECKSUM_UNNECESSARY
in skb_needs_check(), I can't revert 6e7bc478c9a0
("net: skb_needs_check() accepts CHECKSUM_NONE for tx"). I change it
directly and resubmit it.
On Fri, Aug 11, 2017 at 1:03 AM, Willem de Bruijn
[off-list ref] wrote:
On Wed, Aug 9, 2017 at 6:02 PM, Tonghao Zhang [off-list ref] wrote:
quoted
Thanks for your work.
You, too.
quoted
On Thu, Aug 10, 2017 at 2:30 AM, Willem de Bruijn
[off-list ref] wrote:
quoted
On Wed, Aug 9, 2017 at 5:04 AM, Tonghao Zhang [off-list ref] wrote:
quoted
This patch reverts the commit 6e7bc478c9a0
("net: skb_needs_check() accepts CHECKSUM_NONE for tx"),
because we removed the UFO support.
Cc: Eric Dumazet <redacted>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Tonghao Zhang <redacted>
I would wait until net is merged into net-next. This will cause a conflict.
Also, while logically equivalent, it is not a real revert (as in `git
revert $SHA1`) of that patch.
Aside from those concerns, I agree that the original patch is no
longer needed now that UFO is reverted.
Please do resubmit the revert patch once net has been merged into net-next.