[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpUPWncS22uYURFZ5OsvPZp7aJozPNOcDCak9nRFOS0jig@mail.gmail.com>
Date: Tue, 30 Oct 2018 11:59:26 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: Eric Dumazet <edumazet@...gle.com>
Cc: David Miller <davem@...emloft.net>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
Eric Dumazet <eric.dumazet@...il.com>, eranbe@...lanox.com,
Saeed Mahameed <saeedm@...lanox.com>, dmichail@...gle.com,
Paweł Staszewski <pstaszewski@...are.pl>
Subject: Re: [PATCH net] net/mlx5e: fix csum adjustments caused by RXFCS
On Tue, Oct 30, 2018 at 11:42 AM Eric Dumazet <edumazet@...gle.com> wrote:
>
> On Tue, Oct 30, 2018 at 11:09 AM Cong Wang <xiyou.wangcong@...il.com> wrote:
>
> > At least skb_header_pointer() is marked as __must_check, I don't see
> > you check its return value here.
>
> This can not fail here.
>
> skb->length must be above 14+4 at this point.
Never say it is wrong, just saying what compiler thinks.
>
> My compiler seems to be okay with that.
I wonder how compiler recognizes it as "never fail" when marked with
__must_check.
Powered by blists - more mailing lists