[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130429.122707.744055587123930264.davem@davemloft.net>
Date: Mon, 29 Apr 2013 12:27:07 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: dborkman@...hat.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] selftests: psock_tpacket: fix status check
From: Daniel Borkmann <dborkman@...hat.com>
Date: Thu, 25 Apr 2013 11:08:00 +0200
> Testing like this for TP_STATUS_AVAILABLE clearly is a stupid bug
> since it always returns true. Fix this by only checking for flags
> where the kernel owns the packet and negate this result, since we
> also could run into the non-zero status TP_STATUS_WRONG_FORMAT
> and need to reclaim frames.
>
> Signed-off-by: Daniel Borkmann <dborkman@...hat.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists