On 05/12/17 14:31, Eric Blake wrote:

On 12/05/2017 02:17 AM, Mark Cave-Ayland wrote:
This provides a standard ethernet CRC32 little-endian implementation.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk>
---
  include/net/net.h |  2 ++
  net/net.c         | 22 ++++++++++++++++++++++
  2 files changed, 24 insertions(+)

Reviewed-by: Eric Blake <ebl...@redhat.com>

+            if (carry) {
+                crc = crc ^ POLYNOMIAL_LE;
+            }

Worth writing as 'crc ^= POLYNOMIAL_LE;'?

Yes, works for me.


ATB,

Mark.

Reply via email to