Commit:     f9d106a6d53b57b78eae5544f9582c643343a764
Parent:     7752237e9f07b316f81aebdc43f0d7c9a4ba0acf
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Mon Apr 23 22:36:13 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 22:29:47 2007 -0700

    [NET]: Warn about GSO/checksum abuse
    Now that Patrick has added the code to deal with GSO in netfilter,
    we no longer need the crutch that computes partial checksums just
    before transmission.
    This patch turns this into a warning again.  If this goes OK, we
    can then turn it into a BUG_ON and remove the gso_send_check cruft.
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/core/dev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 18c51b4..d82d00f 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1202,7 +1202,7 @@ struct sk_buff *skb_gso_segment(struct sk_buff *skb, int 
        skb->mac_len = skb->network_header - skb->mac_header;
        __skb_pull(skb, skb->mac_len);
-       if (unlikely(skb->ip_summed != CHECKSUM_PARTIAL)) {
+       if (WARN_ON(skb->ip_summed != CHECKSUM_PARTIAL)) {
                if (skb_header_cloned(skb) &&
                    (err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC)))
                        return ERR_PTR(err);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to