[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-netdev
Subject: Re: [PATCH net-next] net-gro: restore frag0 optimization
From: Eric Dumazet <eric.dumazet () gmail ! com>
Date: 2014-03-31 21:19:44
Message-ID: 1396300784.29410.75.camel () edumazet-glaptop2 ! roam ! corp ! google ! com
[Download RAW message or body]
On Mon, 2014-03-31 at 14:01 -0700, Eric Dumazet wrote:
>
> BTW, I found a off-by-one error in skb_gro_header_hard()
>
> -static inline int skb_gro_header_hard(struct sk_buff *skb, unsigned int hlen)
> +static inline bool skb_gro_header_hard(const struct sk_buff *skb,
> + unsigned int hlen)
> {
> - return NAPI_GRO_CB(skb)->frag0_len < hlen;
> + return NAPI_GRO_CB(skb)->frag0_len <= hlen;
> }
Oh well, scratch this. This strange function name fooled me again.
bool slowpath = hlen > NAPI_GRO_CB(skb)->frag0_len;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic